<!DOCTYPE html>
<!-- saved from url=(0070)https://securepubads.g.doubleclick.net/static/topics/topics_frame.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>Topics Frame</title>
    <meta http-equiv="origin-trial" content="Avh5Ny0XEFCyQ7+oNieXskUrqY8edUzL5/XrwKlGjARQHW4TFRK+jVd5HnDIpY20n5OLHfgU4ku7x48N3uhG/A0AAABxeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiUHJpdmFjeVNhbmRib3hBZHNBUElzIiwiZXhwaXJ5IjoxNjk1MTY3OTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZX0=">
    <script>
      
/*

 Copyright 2022 Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
var m,aa,ca=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},da=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ea=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");},fa=ea(this),ha=typeof Symbol==="function"&&typeof Symbol("x")==="symbol",q={},ia={},v=function(a,b,c){if(!c||a!=null){c=ia[b];if(c==null)return a[b];c=a[c];return c!==void 0?c:a[b]}},w=function(a,b,c){if(b)a:{var d=a.split(".");a=d.length===1;var e=d[0],g;!a&&e in q?g=q:g=fa;for(e=0;e<d.length-1;e++){var f=d[e];if(!(f in g))break a;g=g[f]}d=d[d.length-1];c=ha&&c==="es6"?g[d]:null;b=b(c);b!=null&&(a?da(q,d,{configurable:!0,writable:!0,value:b}):b!==c&&(ia[d]===void 0&&(a=Math.random()*1E9>>>0,ia[d]=ha?fa.Symbol(d):"$jscp$"+a+"$"+d),da(g,ia[d],{configurable:!0,writable:!0,value:b})))}};w("Symbol",function(a){if(a)return a;var b=function(g,f){this.g=g;da(this,"description",{configurable:!0,writable:!0,value:f})};b.prototype.toString=function(){return this.g};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e},"es6");w("Symbol.iterator",function(a){if(a)return a;a=(0,q.Symbol)("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=fa[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&da(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ja(ca(this))}})}return a},"es6");var ja=function(a){a={next:a};a[v(q.Symbol,"iterator")]=function(){return this};return a},ka=function(a){return a.raw=a},y=function(a){var b=typeof q.Symbol!="undefined"&&v(q.Symbol,"iterator")&&a[v(q.Symbol,"iterator")];if(b)return b.call(a);if(typeof a.length=="number")return{next:ca(a)};throw Error(String(a)+" is not an iterable or ArrayLike");},la=function(a){if(!(a instanceof Array)){a=y(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a},ma=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},na=ha&&typeof v(Object,"assign")=="function"?v(Object,"assign"):function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ma(d,e)&&(a[e]=d[e])}return a};w("Object.assign",function(a){return a||na},"es6");var oa=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},pa;if(ha&&typeof v(Object,"setPrototypeOf")=="function")pa=v(Object,"setPrototypeOf");else{var qa;a:{var ra={a:!0},sa={};try{sa.__proto__=ra;qa=sa.a;break a}catch(a){}qa=!1}pa=qa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ta=pa,A=function(a,b){a.prototype=oa(b.prototype);a.prototype.constructor=a;if(ta)ta(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Ma=b.prototype},ua=function(){this.F=!1;this.i=null;this.g=void 0;this.h=1;this.W=this.s=0;this.l=null},va=function(a){if(a.F)throw new TypeError("Generator is already running");a.F=!0};ua.prototype.U=function(a){this.g=a};var wa=function(a,b){a.l={la:b,Ea:!0};a.h=a.s||a.W};ua.prototype.return=function(a){this.l={return:a};this.h=this.W};var B=function(a,b,c){a.h=c;return{value:b}},xa=function(a){a.s=0;var b=a.l.la;a.l=null;return b},ya=function(a){this.g=new ua;this.h=a},Ba=function(a,b){va(a.g);var c=a.g.i;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Aa(a)},za=function(a,b,c,d){try{var e=b.call(a.g.i,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.F=!1,e;var g=e.value}catch(f){return a.g.i=null,wa(a.g,f),Aa(a)}a.g.i=null;d.call(a.g,g);return Aa(a)},Aa=function(a){for(;a.g.h;)try{var b=a.h(a.g);if(b)return a.g.F=!1,{value:b.value,done:!1}}catch(c){a.g.g=void 0,wa(a.g,c)}a.g.F=!1;if(a.g.l){b=a.g.l;a.g.l=null;if(b.Ea)throw b.la;return{value:b.return,done:!0}}return{value:void 0,done:!0}},Ca=function(a){this.next=function(b){va(a.g);a.g.i?b=za(a,a.g.i.next,b,a.g.U):(a.g.U(b),b=Aa(a));return b};this.throw=function(b){va(a.g);a.g.i?b=za(a,a.g.i["throw"],b,a.g.U):(wa(a.g,b),b=Aa(a));return b};this.return=function(b){return Ba(a,b)};this[v(q.Symbol,"iterator")]=function(){return this}},Ga=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new q.Promise(function(d,e){function g(f){f.done?d(f.value):q.Promise.resolve(f.value).then(b,c).then(g,e)}g(a.next())})},C=function(a){return Ga(new Ca(new ya(a)))},Ha=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};w("Reflect.setPrototypeOf",function(a){return a?a:ta?function(b,c){try{return ta(b,c),!0}catch(d){return!1}}:null},"es6");w("Promise",function(a){function b(){this.g=null}function c(f){return f instanceof e?f:new e(function(h){h(f)})}if(a)return a;b.prototype.h=function(f){if(this.g==null){this.g=[];var h=this;this.i(function(){h.s()})}this.g.push(f)};var d=fa.setTimeout;b.prototype.i=function(f){d(f,0)};b.prototype.s=function(){for(;this.g&&this.g.length;){var f=this.g;this.g=[];for(var h=0;h<f.length;++h){var k=f[h];f[h]=null;try{k()}catch(l){this.l(l)}}}this.g=null};b.prototype.l=function(f){this.i(function(){throw f;})};var e=function(f){this.h=0;this.i=void 0;this.g=[];this.U=!1;var h=this.l();try{f(h.resolve,h.reject)}catch(k){h.reject(k)}};e.prototype.l=function(){function f(l){return function(n){k||(k=!0,l.call(h,n))}}var h=this,k=!1;return{resolve:f(this.va),reject:f(this.s)}};e.prototype.va=function(f){if(f===this)this.s(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof e)this.xa(f);else{a:switch(typeof f){case "object":var h=f!=null;break a;case "function":h=!0;break a;default:h=!1}h?this.ua(f):this.F(f)}};e.prototype.ua=function(f){var h=void 0;try{h=f.then}catch(k){this.s(k);return}typeof h=="function"?this.ya(h,f):this.F(f)};e.prototype.s=function(f){this.W(2,f)};e.prototype.F=function(f){this.W(1,f)};e.prototype.W=function(f,h){if(this.h!=0)throw Error("Cannot settle("+f+", "+h+"): Promise already settled in state"+this.h);this.h=f;this.i=h;this.h===2&&this.wa();this.sa()};e.prototype.wa=function(){var f=this;d(function(){if(f.ta()){var h=fa.console;typeof h!=="undefined"&&h.error(f.i)}},1)};e.prototype.ta=function(){if(this.U)return!1;var f=fa.CustomEvent,h=fa.Event,k=fa.dispatchEvent;if(typeof k==="undefined")return!0;typeof f==="function"?f=new f("unhandledrejection",{cancelable:!0}):typeof h==="function"?f=new h("unhandledrejection",{cancelable:!0}):(f=fa.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.i;return k(f)};e.prototype.sa=function(){if(this.g!=null){for(var f=0;f<this.g.length;++f)g.h(this.g[f]);this.g=null}};var g=new b;e.prototype.xa=function(f){var h=this.l();f.Z(h.resolve,h.reject)};e.prototype.ya=function(f,h){var k=this.l();try{f.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};e.prototype.then=function(f,h){function k(t,r){return typeof t=="function"?function(u){try{l(t(u))}catch(z){n(z)}}:r}var l,n,p=new e(function(t,r){l=t;n=r});this.Z(k(f,l),k(h,n));return p};e.prototype.catch=function(f){return this.then(void 0,f)};e.prototype.Z=function(f,h){function k(){switch(l.h){case 1:f(l.i);break;case 2:h(l.i);break;default:throw Error("Unexpected state: "+l.h);}}var l=this;this.g==null?g.h(k):this.g.push(k);this.U=!0};e.resolve=c;e.reject=function(f){return new e(function(h,k){k(f)})};e.race=function(f){return new e(function(h,k){for(var l=y(f),n=l.next();!n.done;n=l.next())c(n.value).Z(h,k)})};e.all=function(f){var h=y(f),k=h.next();return k.done?c([]):new e(function(l,n){function p(u){return function(z){t[u]=z;r--;r==0&&l(t)}}var t=[],r=0;do t.push(void 0),r++,c(k.value).Z(p(t.length-1),n),k=h.next();while(!k.done)})};return e},"es6");w("Object.setPrototypeOf",function(a){return a||ta},"es6");w("WeakMap",function(a){function b(){}function c(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}if(function(){if(!a||!Object.seal)return!1;try{var f=Object.seal({}),h=Object.seal({}),k=new a([[f,2],[h,3]]);if(k.get(f)!=2||k.get(h)!=3)return!1;k.delete(f);k.set(h,4);return!k.has(f)&&k.get(h)==4}catch(l){return!1}}())return a;var d="$jscomp_hidden_"+Math.random(),e=0,g=function(f){this.g=(e+=Math.random()+1).toString();if(f){f=y(f);for(var h;!(h=f.next()).done;)h=h.value,this.set(h[0],h[1])}};g.prototype.set=function(f,h){if(!c(f))throw Error("Invalid WeakMap key");if(!ma(f,d)){var k=new b;da(f,d,{value:k})}if(!ma(f,d))throw Error("WeakMap key fail: "+f);f[d][this.g]=h;return this};g.prototype.get=function(f){return c(f)&&ma(f,d)?f[d][this.g]:void 0};g.prototype.has=function(f){return c(f)&&ma(f,d)&&ma(f[d],this.g)};g.prototype.delete=function(f){return c(f)&&ma(f,d)&&ma(f[d],this.g)?delete f[d][this.g]:!1};return g},"es6");w("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var h=Object.seal({x:4}),k=new a(y([[h,"s"]]));if(k.get(h)!="s"||k.size!=1||k.get({x:4})||k.set({x:4},"t")!=k||k.size!=2)return!1;var l=k.entries(),n=l.next();if(n.done||n.value[0]!=h||n.value[1]!="s")return!1;n=l.next();return n.done||n.value[0].x!=4||n.value[1]!="t"||!l.next().done?!1:!0}catch(p){return!1}}())return a;var b=new q.WeakMap,c=function(h){this[0]={};this[1]=g();this.size=0;if(h){h=y(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}};c.prototype.set=function(h,k){h=h===0?0:h;var l=d(this,h);l.list||(l.list=this[0][l.id]=[]);l.A?l.A.value=k:(l.A={next:this[1],H:this[1].H,head:this[1],key:h,value:k},l.list.push(l.A),this[1].H.next=l.A,this[1].H=l.A,this.size++);return this};c.prototype.delete=function(h){h=d(this,h);return h.A&&h.list?(h.list.splice(h.index,1),h.list.length||delete this[0][h.id],h.A.H.next=h.A.next,h.A.next.H=h.A.H,h.A.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].H=g();this.size=0};c.prototype.has=function(h){return!!d(this,h).A};c.prototype.get=function(h){return(h=d(this,h).A)&&h.value};c.prototype.entries=function(){return e(this,function(h){return[h.key,h.value]})};c.prototype.keys=function(){return e(this,function(h){return h.key})};c.prototype.values=function(){return e(this,function(h){return h.value})};c.prototype.forEach=function(h,k){for(var l=this.entries(),n;!(n=l.next()).done;)n=n.value,h.call(k,n[1],n[0],this)};c.prototype[v(q.Symbol,"iterator")]=c.prototype.entries;var d=function(h,k){var l=k&&typeof k;l=="object"||l=="function"?b.has(k)?l=b.get(k):(l=""+ ++f,b.set(k,l)):l="p_"+k;var n=h[0][l];if(n&&ma(h[0],l))for(h=0;h<n.length;h++){var p=n[h];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:n,index:h,A:p}}return{id:l,list:n,index:-1,A:void 0}},e=function(h,k){var l=h[1];return ja(function(){if(l){for(;l.head!=h[1];)l=l.H;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})},g=function(){var h={};return h.H=h.next=h.head=h},f=0;return c},"es6");w("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991},"es6");w("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}},"es6");w("Number.isInteger",function(a){return a?a:function(b){return v(Number,"isFinite").call(Number,b)?b===Math.floor(b):!1}},"es6");w("Number.isSafeInteger",function(a){return a?a:function(b){return v(Number,"isInteger").call(Number,b)&&Math.abs(b)<=v(Number,"MAX_SAFE_INTEGER")}},"es6");w("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}},"es6");w("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ma(b,d)&&c.push(b[d]);return c}},"es8");w("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}},"es6");w("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var g=d[c];if(g===b||v(Object,"is").call(Object,g,b))return!0}return!1}},"es7");w("String.prototype.includes",function(a){return a?a:function(b,c){if(this==null)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return this.indexOf(b,c||0)!==-1}},"es6");w("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}},"es6");var Ia=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[v(q.Symbol,"iterator")]=function(){return e};return e};w("Array.prototype.values",function(a){return a?a:function(){return Ia(this,function(b,c){return c})}},"es8");w("Set",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(y([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),g=e.next();if(g.done||g.value[0]!=c||g.value[1]!=c)return!1;g=e.next();return g.done||g.value[0]==c||g.value[0].x!=4||g.value[1]!=g.value[0]?!1:e.next().done}catch(f){return!1}}())return a;var b=function(c){this.g=new q.Map;if(c){c=y(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size};b.prototype.add=function(c){c=c===0?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return v(this.g,"values").call(this.g)};b.prototype.keys=v(b.prototype,"values");b.prototype[v(q.Symbol,"iterator")]=v(b.prototype,"values");b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(g){return c.call(d,g,g,e)})};return b},"es6");w("globalThis",function(a){return a||fa},"es_2020");/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Ja=this||self,Ka=function(a){a:{var b=["CLOSURE_FLAGS"];for(var c=Ja,d=0;d<b.length;d++)if(c=c[b[d]],c==null){b=null;break a}b=c}a=b&&b[a];return a!=null?a:!1};function La(){throw Error("Invalid UTF8");}function Ma(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b}var Na=void 0,Oa,Pa=typeof TextDecoder!=="undefined",Qa,Ra=typeof String.prototype.Fa==="function",Sa=typeof TextEncoder!=="undefined";function Va(a){Ja.setTimeout(function(){throw a;},0)};var Wa=Ka(610401301),Xa=Ka(188588736);var Ya,Za=Ja.navigator;Ya=Za?Za.userAgentData||null:null;function $a(a){return Wa?Ya?Ya.brands.some(function(b){return(b=b.brand)&&b.indexOf(a)!=-1}):!1:!1}function D(a){var b;a:{if(b=Ja.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function ab(){return Wa?!!Ya&&Ya.brands.length>0:!1}function bb(){return ab()?$a("Chromium"):(D("Chrome")||D("CriOS"))&&!(ab()?0:D("Edge"))||D("Silk")};var cb=function(a){cb[" "](a);return a};cb[" "]=function(){};var db=ab()?!1:D("Trident")||D("MSIE");!D("Android")||bb();bb();D("Safari")&&(bb()||(ab()?0:D("Coast"))||(ab()?0:D("Opera"))||(ab()?0:D("Edge"))||(ab()?$a("Microsoft Edge"):D("Edg/"))||ab()&&$a("Opera"));var eb={},fb=null,hb=function(a,b){b===void 0&&(b=0);gb();b=eb[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,g=0;e<a.length-2;e+=3){var f=a[e],h=a[e+1],k=a[e+2],l=b[f>>2];f=b[(f&3)<<4|h>>4];h=b[(h&15)<<2|k>>6];k=b[k&63];c[g++]=l+f+h+k}l=0;k=d;switch(a.length-e){case 2:l=a[e+1],k=b[(l&15)<<2]||d;case 1:a=a[e],c[g]=b[a>>2]+b[(a&3)<<4|l>>4]+k+d}return c.join("")},jb=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):"=.".indexOf(a[b-1])!=-1&&(c="=.".indexOf(a[b-2])!=-1?c-2:c-1);var d=new Uint8Array(c),e=0;ib(a,function(g){d[e++]=g});return e!==c?d.subarray(0,e):d},ib=function(a,b){function c(k){for(;d<a.length;){var l=a.charAt(d++),n=fb[l];if(n!=null)return n;if(!/^[\s\xa0]*$/.test(l))throw Error("Unknown base64 encoding at char: "+l);}return k}gb();for(var d=0;;){var e=c(-1),g=c(0),f=c(64),h=c(64);if(h===64&&e===-1)break;b(e<<2|g>>4);f!=64&&(b(g<<4&240|f>>2),h!=64&&b(f<<6&192|h))}},gb=function(){if(!fb){fb={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));eb[c]=d;for(var e=0;e<d.length;e++){var g=d[e];fb[g]===void 0&&(fb[g]=e)}}}};var kb=typeof Uint8Array!=="undefined",lb=!db&&typeof btoa==="function";function mb(a){if(!lb)return hb(a);for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)}var nb=/[-_.]/g,ob={"-":"+",_:"/",".":"="};function qb(a){return ob[a]||""}function rb(a){if(!lb)return jb(a);nb.test(a)&&(a=a.replace(nb,qb));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b}function sb(a){return kb&&a!=null&&a instanceof Uint8Array}var tb={};var ub;function vb(a){if(a!==tb)throw Error("illegal external caller");}var wb=function(a,b){vb(b);this.g=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");},xb=function(){return ub||(ub=new wb(null,tb))},yb=function(a){vb(tb);var b=a.g;b=b==null||sb(b)?b:typeof b==="string"?rb(b):null;return b==null?b:a.g=b};function zb(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")}function Ab(){return Error("Failed to read varint, encoding is invalid.")}function Bb(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};function Cb(a){if(typeof a==="string")return{buffer:rb(a),O:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),O:!1};if(a.constructor===Uint8Array)return{buffer:a,O:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),O:!1};if(a.constructor===wb)return{buffer:yb(a)||new Uint8Array(0),O:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),O:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");};function Db(){return typeof BigInt==="function"};var Eb=typeof Uint8Array.prototype.slice==="function",E=0,F=0;function Fb(a){var b=a<0;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=y(Gb(c,a)),b=c.next().value,a=c.next().value,c=b);E=c>>>0;F=a>>>0}function Hb(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=b*4294967296+(a>>>0);return c?-a:a}function Ib(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Db()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=Math.floor(a/1E7),a%=1E7),c>=1E7&&(b+=Math.floor(c/1E7),c%=1E7),c=b+Jb(c)+Jb(a));return c}function Jb(a){a=String(a);return"0000000".slice(a.length)+a}function Kb(){var a=E,b=F;b&2147483648?Db()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=y(Gb(a,b)),a=b.next().value,b=b.next().value,a="-"+Ib(a,b)):a=Ib(a,b);return a}function Lb(a){if(a.length<16)Fb(Number(a));else if(Db())a=BigInt(a),E=Number(a&BigInt(4294967295))>>>0,F=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");F=E=0;for(var c=a.length,d=b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),F*=1E6,E=E*1E6+d,E>=4294967296&&(F+=v(Math,"trunc").call(Math,E/4294967296),F>>>=0,E>>>=0);b&&(b=y(Gb(E,F)),a=b.next().value,b=b.next().value,E=a,F=b)}}function Gb(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};var Nb=function(a,b){this.i=null;this.s=!1;this.g=this.h=this.l=0;Mb(this,a,b)},Mb=function(a,b,c){c=c===void 0?{}:c;a.Y=c.Y===void 0?!1:c.Y;b&&(b=Cb(b),a.i=b.buffer,a.s=b.O,a.l=0,a.h=a.i.length,a.g=a.l)};Nb.prototype.clear=function(){this.i=null;this.s=!1;this.g=this.h=this.l=0;this.Y=!1};var Ob=function(a,b){a.g=b;if(b>a.h)throw Bb(a.h,b);},Pb=function(a){var b=a.i,c=a.g,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Ab();Ob(a,c);return e},Qb=function(a,b){if(b<0)throw Error("Tried to read a negative byte length: "+b);var c=a.g,d=c+b;if(d>a.h)throw Bb(b,a.h-c);a.g=d;return c},Rb=function(a,b){if(b==0)return xb();var c=Qb(a,b);a.Y&&a.s?c=a.i.subarray(c,c+b):(a=a.i,b=c+b,c=c===b?new Uint8Array(0):Eb?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?xb():new wb(c,tb)},Sb=[];var Ub=function(a,b){if(Sb.length){var c=Sb.pop();Mb(c,a,b);a=c}else a=new Nb(a,b);this.g=a;this.i=this.g.g;this.h=this.l=-1;Tb(this,b)},Tb=function(a,b){b=b===void 0?{}:b;a.ga=b.ga===void 0?!1:b.ga},Vb=function(a){var b=a.g;if(b.g==b.h)return!1;a.i=a.g.g;var c=Pb(a.g)>>>0;b=c>>>3;c&=7;if(!(c>=0&&c<=5))throw zb(c,a.i);if(b<1)throw Error("Invalid field number: "+b+" (at position "+a.i+")");a.l=b;a.h=c;return!0},Yb=function(a){switch(a.h){case 0:if(a.h!=0)Yb(a);else a:{a=a.g;for(var b=a.g,c=b+10,d=a.i;b<c;)if((d[b++]&128)===0){Ob(a,b);break a}throw Ab();}break;case 1:a=a.g;Ob(a,a.g+8);break;case 2:a.h!=2?Yb(a):(b=Pb(a.g)>>>0,a=a.g,Ob(a,a.g+b));break;case 5:a=a.g;Ob(a,a.g+4);break;case 3:b=a.l;do{if(!Vb(a))throw Error("Unmatched start-group tag: stream EOF");if(a.h==4){if(a.l!=b)throw Error("Unmatched end-group tag");break}Yb(a)}while(1);break;default:throw zb(a.h,a.i);}},Zb=function(a,b,c){var d=a.g.h,e=Pb(a.g)>>>0,g=a.g.g+e,f=g-d;f<=0&&(a.g.h=g,c(b,a,void 0,void 0,void 0),f=g-a.g.g);if(f)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-f)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.g.g=g;a.g.h=d},$b=[];var ac=function(a,b){this.h=a>>>0;this.g=b>>>0},cc=function(a){if(!a)return bc||(bc=new ac(0,0));if(!/^-?\d+$/.test(a))return null;Lb(a);return new ac(E,F)},bc;var dc=function(){this.g=[]};dc.prototype.length=function(){return this.g.length};dc.prototype.end=function(){var a=this.g;this.g=[];return a};var ec=function(a,b,c){for(;c>0||b>127;)a.g.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.g.push(b)},fc=function(a,b){for(;b>127;)a.g.push(b&127|128),b>>>=7;a.g.push(b)};var gc=function(){this.i=[];this.h=0;this.g=new dc},hc=function(a,b){b.length!==0&&(a.i.push(b),a.h+=b.length)},ic=function(a,b){hc(a,a.g.end());hc(a,b)},jc=function(a,b){fc(a.g,b*8+2);b=a.g.end();hc(a,b);b.push(a.h);return b},kc=function(a,b){var c=b.pop();for(c=a.h+a.g.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.h++;b.push(c);a.h++},lc=function(a){hc(a,a.g.end());for(var b=new Uint8Array(a.h),c=a.i,d=c.length,e=0,g=0;g<d;g++){var f=c[g];b.set(f,e);e+=f.length}a.i=[b];return b},mc=function(a,b,c,d){c!=null&&(b=jc(a,b),d(c,a),kc(a,b))},oc=function(a,b,c){var d=nc;if(c!=null)for(var e=0;e<c.length;e++){var g=jc(a,b);d(c[e],a);kc(a,g)}};var pc=function(a,b,c){this.g=a;this.h=b;this.ra=c};function qc(a){return Array.prototype.slice.call(a)};function rc(a){return typeof q.Symbol==="function"&&typeof(0,q.Symbol)()==="symbol"?(0,q.Symbol)():a}var sc=rc(),tc=rc("2ex");var uc=sc?function(a,b){a[sc]|=b}:function(a,b){a.g!==void 0?a.g|=b:Object.defineProperties(a,{g:{value:b,configurable:!0,writable:!0,enumerable:!1}})};function G(a,b,c){return c?a|b:a&~b}var H=sc?function(a){return a[sc]|0}:function(a){return a.g|0},I=sc?function(a){return a[sc]}:function(a){return a.g},J=sc?function(a,b){a[sc]=b;return a}:function(a,b){a.g!==void 0?a.g=b:Object.defineProperties(a,{g:{value:b,configurable:!0,writable:!0,enumerable:!1}});return a};function vc(a,b){J(b,(a|0)&-14591)}function wc(a,b){J(b,(a|34)&-14557)}function xc(a){a=a>>14&1023;return a===0?536870912:a};var yc={},zc={};function Ac(a){return!(!a||typeof a!=="object"||a.g!==zc)}function Bc(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}var Cc;function Dc(a,b,c){if(a!=null)if(typeof a==="string")a=a?new wb(a,tb):xb();else if(a.constructor!==wb)if(sb(a))a=a.length?new wb(c?a:new Uint8Array(a),tb):xb();else{if(!b)throw Error();a=void 0}return a}function Ec(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=H(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?v(b,"includes").call(b,c):b.has(c))))return!1;J(a,d|1);return!0}var Fc,Gc=[];J(Gc,55);Fc=Object.freeze(Gc);function Hc(a){if(a&2)throw Error();}var Ic;function Jc(a,b){(b=Ic?b[Ic]:void 0)&&(a[Ic]=qc(b))}var Kc,Lc=function(){};Object.freeze(new function(){});Object.freeze(new Lc);var Mc=Object.freeze(new Lc);var Nc=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};var Oc;function Pc(a){a=Error(a);Nc(a,"warning");return a};var Qc=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Rc(a){var b=typeof a;return b==="number"?v(Number,"isFinite").call(Number,a):b!=="string"?!1:Qc.test(a)}function Sc(a){if(a!=null){if(!v(Number,"isFinite").call(Number,a))throw Pc("enum");a|=0}return a}function Tc(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return v(Number,"isFinite").call(Number,a)?a|0:void 0}function Uc(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return v(Number,"isFinite").call(Number,a)?a>>>0:void 0}function Vc(a){var b=!!b;if(!Rc(a))throw Pc("int64");typeof a==="string"?a=Wc(a):b?(a=v(Math,"trunc").call(Math,a),v(Number,"isSafeInteger").call(Number,a)?a=String(a):(b=String(a),Xc(b)?a=b:(Fb(a),a=Kb()))):a=Yc(a);return a}function Xc(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337}function Yc(a){a=v(Math,"trunc").call(Math,a);v(Number,"isSafeInteger").call(Number,a)||(Fb(a),a=Hb(E,F));return a}function Wc(a){var b=v(Math,"trunc").call(Math,Number(a));if(v(Number,"isSafeInteger").call(Number,b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));Xc(a)||(Lb(a),a=Kb());return a}function Zc(a){if(a!=null&&typeof a!=="string")throw Error();return a}function $c(a){return a==null||typeof a==="string"?a:void 0}function ad(a,b,c){if(a!=null&&typeof a==="object"&&a.ca===yc)return a;if(Array.isArray(a)){var d=H(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&J(a,e);return new b(a)}};var bd;function cd(a,b){bd=b;a=new a(b);bd=void 0;return a}var dd,ed;function fd(a){switch(typeof a){case "boolean":return dd||(dd=[0,void 0,!0]);case "number":return a>0?void 0:a===0?ed||(ed=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}function K(a,b,c){a==null&&(a=bd);bd=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=H(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var g=e-1;if(Bc(c[g])){d|=256;b=g-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-16760833|(b&1023)<<14}}}J(a,d);return a};function gd(a,b){return hd(b)}function hd(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(Ec(a,void 0,0))return}else{if(sb(a))return mb(a);if(a instanceof wb){var b=a.g;return b==null?"":typeof b==="string"?b:a.g=mb(b)}}}return a};function id(a,b,c){var d=qc(a),e=d.length,g=b&256?d[e-1]:void 0;e+=g?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(g){b=d[b]={};for(var f in g)Object.prototype.hasOwnProperty.call(g,f)&&(b[f]=c(g[f]))}Jc(d,a);return d}function jd(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=Ec(a,void 0,0)?void 0:e&&H(a)&2?a:kd(a,b,c,d!==void 0,e);else if(Bc(a)){var g={},f;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(g[f]=jd(a[f],b,c,d,e));a=g}else a=b(a,d);return a}}function kd(a,b,c,d,e){var g=d||c?H(a):0;d=d?!!(g&32):void 0;for(var f=qc(a),h=0;h<f.length;h++)f[h]=jd(f[h],b,c,d,e);c&&(Jc(f,a),c(g,f));return f}function ld(a){return a.ca===yc?a.toJSON():hd(a)};function md(a,b,c){c=c===void 0?wc:c;if(a!=null){if(kb&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=H(a);d&2||(b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16))),a=b?J(a,(d|34)&-12293):kd(a,md,d&4?wc:c,!0,!0));return a}a.ca===yc&&(c=a.j,d=I(c),a=d&2?a:cd(a.constructor,nd(c,d,!0)));return a}}function nd(a,b,c){var d=c||b&2?wc:vc,e=!!(b&32);a=id(a,b,function(g){return md(g,e,d)});uc(a,32|(c?2:0));return a}function od(a){var b=a.j,c=I(b);return c&2?cd(a.constructor,nd(b,c,!1)):a};var qd=function(a,b){a=a.j;return pd(a,I(a),b)};function rd(a,b,c,d){b=d+(+!!(b&512)-1);if(!(b<0||b>=a.length||b>=c))return a[b]}var pd=function(a,b,c,d){if(c===-1)return null;var e=xc(b);if(c>=e){if(b&256)return a[a.length-1][c]}else{var g=a.length;if(d&&b&256&&(d=a[g-1][c],d!=null)){if(rd(a,b,e,c)&&tc!=null){var f;a=(f=Oc)!=null?f:Oc={};f=a[tc]||0;f>=4||(a[tc]=f+1,f=Error(),Nc(f,"incident"),Va(f))}return d}return rd(a,b,e,c)}};function L(a,b,c,d,e){var g=xc(b);if(c>=g||e){var f=b;if(b&256)e=a[a.length-1];else{if(d==null)return f;e=a[g+(+!!(b&512)-1)]={};f|=256}e[c]=d;c<g&&(a[c+(+!!(b&512)-1)]=void 0);f!==b&&J(a,f);return f}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b}function sd(a){return!!(2&a)&&!!(4&a)||!!(2048&a)}var N=function(a,b){a=a.j;var c=I(a),d=pd(a,c,b),e=Dc(d,!0,!!(c&34));e!=null&&e!==d&&L(a,c,b,e);return e==null?xb():e};function O(a,b,c,d){var e=a.j,g=I(e);Hc(g);L(e,g,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a}var td=function(a,b,c,d){var e=I(a);Hc(e);var g=pd(a,e,c,d),f;if(g!=null&&g.ca===yc)return b=od(g),b!==g&&L(a,e,c,b,d),b.j;if(Array.isArray(g)){var h=H(g);h&2?f=nd(g,h,!1):f=g;f=K(f,b[0],b[1])}else f=K(void 0,b[0],b[1]);f!==g&&L(a,e,c,f,d);return f},P=function(a,b,c){var d=d===void 0?!1:d;var e=a.j;var g=I(e),f=pd(e,g,c,d);b=ad(f,b,g);b!==f&&b!=null&&L(e,g,c,b,d);e=b;if(e==null)return e;a=a.j;g=I(a);g&2||(f=od(e),f!==e&&(e=f,L(a,g,c,e,d)));return e},ud=function(a,b,c){c==null&&(c=void 0);var d=a.j,e=I(d);Hc(e);L(d,e,b,c);return a};function vd(a,b){a=G(a,2,!!(2&b));a=G(a,32,!0);return a=G(a,2048,!1)}function wd(a,b,c){32&b&&c||(a=G(a,32,!1));return a}var Q=function(a,b){var c=c===void 0?0:c;a=Uc(qd(a,b));return a!=null?a:c},R=function(a,b){var c=c===void 0?"":c;a=$c(qd(a,b));return a!=null?a:c},S=function(a,b){var c=0;c=c===void 0?0:c;a=qd(a,b);a=a==null?a:v(Number,"isFinite").call(Number,a)?a|0:void 0;return a!=null?a:c},xd=function(a,b,c){if(c!=null){if(typeof c!=="number")throw Pc("uint32");if(!v(Number,"isFinite").call(Number,c))throw Pc("uint32");c>>>=0}return O(a,b,c,0)},yd=function(a,b,c){return O(a,b,Dc(c,!1,!1),xb())};var T=function(a,b,c){this.j=K(a,b,c)};T.prototype.toJSON=function(){return Cc?zd(this,this.j,!1):zd(this,kd(this.j,ld,void 0,void 0,!1),!0)};T.prototype.O=function(){return!!(H(this.j)&2)};T.prototype.ca=yc;T.prototype.toString=function(){return zd(this,this.j,!1).toString()};function zd(a,b,c){var d=Xa?void 0:a.constructor.pa;var e=I(c?a.j:b);a=b.length;if(!a)return b;var g;if(Bc(c=b[a-1])){a:{var f=c;var h={},k=!1,l;for(l in f)if(Object.prototype.hasOwnProperty.call(f,l)){var n=f[l];if(Array.isArray(n)){var p=n;if(Ec(n,d,+l)||Ac(n)&&n.size===0)n=null;n!=p&&(k=!0)}n!=null?h[l]=n:k=!0}if(k){for(var t in h){f=h;break a}f=null}}f!=c&&(g=!0);a--}for(l=+!!(e&512)-1;a>0;a--){t=a-1;c=b[t];t-=l;if(!(c==null||Ec(c,d,t)||Ac(c)&&c.size===0))break;var r=!0}if(!g&&!r)return b;b=Array.prototype.slice.call(b,0,a);f&&b.push(f);return b};function Ad(a){return Array.isArray(a)?a[0]instanceof pc?a:[Bd,a]:[a,void 0]}var Cd=(0,q.Symbol)();function Dd(a){var b=a[Cd];if(!b){var c=Ed(a),d=Fd(a),e=d.i;b=e?function(g,f){return e(g,f,d)}:function(g,f){for(;Vb(f)&&f.h!=4;){var h=f.l,k=d[h];if(!k){var l=d.ja;l&&(l=l[h])&&(k=d[h]=Gd(l))}k&&k(f,g,h)||(k=f,h=k.i,Yb(k),k.ga?k=void 0:(l=k.g.g-h,k.g.g=h,k=Rb(k.g,l)),h=g,k&&(Ic||(Ic=(0,q.Symbol)()),(l=h[Ic])?l.push(k):h[Ic]=[k]))}c===Hd||c===Id||c.s||(g[Kc||(Kc=(0,q.Symbol)())]=c)};a[Cd]=b}return b}function Gd(a){a=Ad(a);var b=a[0].g;if(a=a[1]){var c=Dd(a),d=Fd(a).S;return function(e,g,f){return b(e,g,f,d,c)}}return b}var Jd=function(){},Hd,Id,Kd=(0,q.Symbol)();function Ld(a,b,c){var d=c[1];if(d){var e=d[Kd];var g=e?e.S:fd(d[0]);a[b]=e!=null?e:d}g&&g===dd?(a.g||(a.g=new q.Set)).add(b):c[0]&&(a.h||(a.h=new q.Set)).add(b)}function Md(a,b){return[!1,!b||b[0]>0?void 0:b]}function Ed(a){var b=a[Kd];if(b)return b;b=Nd(a,a[Kd]=new Jd,Md,Md,Ld);if(!b.ja&&!b.h&&!b.g){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(fd(a[0])===dd?Id?b=Id:(b=new Jd,b.S=fd(!0),b=Id=b):b=Hd||(Hd=new Jd),b=a[Kd]=b):b.s=!0}return b}function Od(a,b,c){a[b]=c}function Nd(a,b,c,d,e){e=e===void 0?Od:e;b.S=fd(a[0]);var g=0,f=a[++g];f&&f.constructor===Object&&(b.ja=f,f=a[++g],typeof f==="function"&&(b.i=f,b.l=a[++g],f=a[++g]));for(var h={};Array.isArray(f)&&typeof f[0]==="number"&&f[0]>0;){for(var k=0;k<f.length;k++)h[f[k]]=f;f=a[++g]}for(k=1;f!==void 0;){typeof f==="number"&&(k+=f,f=a[++g]);var l=void 0;if(f instanceof pc)var n=f;else n=Pd,g--;if(n.ra){f=a[++g];l=a;var p=g;typeof f=="function"&&(f=f(),l[p]=f);l=f}f=a[++g];p=k+1;typeof f==="number"&&f<0&&(p-=f,f=a[++g]);for(;k<p;k++){var t=h[k];e(b,k,l?d(n,l,t):c(n,t))}}return b}var Qd=(0,q.Symbol)();function Rd(a){var b=a[Qd];if(!b){var c=Sd(a);b=function(d,e){return Td(d,e,c)};a[Qd]=b}return b}var Ud=(0,q.Symbol)();function Vd(a){return a.h}function Wd(a,b){var c,d,e=a.h;return function(g,f,h){return e(g,f,h,d||(d=Sd(b).S),c||(c=Rd(b)))}}function Sd(a){var b=a[Ud];if(b)return b;b=Nd(a,a[Ud]={},Vd,Wd);Xd(a);return b}var Yd=(0,q.Symbol)();function Zd(a,b){var c=a.g;return b?function(d,e,g){return c(d,e,g,b)}:c}function $d(a,b,c){var d=a.g,e,g;return function(f,h,k){return d(f,h,k,g||(g=Fd(b).S),e||(e=Dd(b)),c)}}function Fd(a){var b=a[Yd];if(b)return b;Ed(a);b=Nd(a,a[Yd]={},Zd,$d);Xd(a);return b}function Xd(a){Yd in a&&Kd in a&&Ud in a&&(a.length=0)}function ae(a,b){var c=a[b];if(c)return c;if(c=a.ja)if(c=c[b]){c=Ad(c);var d=c[0].h;if(c=c[1]){var e=Rd(c),g=Sd(c).S;c=(c=a.l)?c(g,e):function(f,h,k){return d(f,h,k,g,e)}}else c=d;return a[b]=c}}function Td(a,b,c){for(var d=I(a),e=+!!(d&512)-1,g=a.length,f=g+(d&256?-1:0),h=d&512?1:0;h<f;h++){var k=a[h];if(k!=null){var l=h-e,n=ae(c,l);n&&n(b,k,l)}}if(d&256){d=a[g-1];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(e=+p,v(Number,"isNaN").call(Number,e)||(g=d[p],g!=null&&(f=ae(c,e))&&f(b,g,e)))}if(a=Ic?a[Ic]:void 0)for(hc(b,b.g.end()),c=0;c<a.length;c++)hc(b,yb(a[c])||new Uint8Array(0))}var be=function(a,b){var c=new gc;Td(a.j,c,Sd(b));return lc(c)};function ce(a,b){return new pc(a,b,!1)}function de(a,b,c,d,e){mc(a,c,b instanceof T?b.j:Array.isArray(b)?K(b,d[0],d[1]):void 0,e)}var ee=ce(function(a,b,c){if(a.h!==0)return!1;a=a.g;var d=0,e=0,g=0,f=a.i,h=a.g;do{var k=f[h++];d|=(k&127)<<g;g+=7}while(g<32&&k&128);g>32&&(e|=(k&127)>>4);for(g=3;g<32&&k&128;g+=7)k=f[h++],e|=(k&127)<<g;Ob(a,h);if(k<128)a=Hb(d>>>0,e>>>0);else throw Ab();L(b,I(b),c,a===0?void 0:a);return!0},function(a,b,c){a:if(b!=null){if(Rc(b)){if(typeof b==="string"){b=Wc(b);break a}if(typeof b==="number"){b=Yc(b);break a}}b=void 0}b!=null&&(typeof b==="string"&&cc(b),b!=null&&(fc(a.g,c*8),typeof b==="number"?(a=a.g,Fb(b),ec(a,E,F)):(c=cc(b),ec(a.g,c.h,c.g))))}),fe=ce(function(a,b,c){if(a.h!==2)return!1;var d,e=Pb(a.g)>>>0;a=a.g;var g=Qb(a,e);a=a.i;if(Pa){var f=a;(d=Oa)||(d=Oa=new TextDecoder("utf-8",{fatal:!0}));e=g+e;f=g===0&&e===f.length?f:f.subarray(g,e);try{var h=d.decode(f)}catch(p){if(Na===void 0){try{d.decode(new Uint8Array([128]))}catch(t){}try{d.decode(new Uint8Array([97])),Na=!0}catch(t){Na=!1}}!Na&&(Oa=void 0);throw p;}}else{h=g;e=h+e;g=[];for(var k=null,l,n;h<e;)l=a[h++],l<128?g.push(l):l<224?h>=e?La():(n=a[h++],l<194||(n&192)!==128?(h--,La()):g.push((l&31)<<6|n&63)):l<240?h>=e-1?La():(n=a[h++],(n&192)!==128||l===224&&n<160||l===237&&n>=160||((d=a[h++])&192)!==128?(h--,La()):g.push((l&15)<<12|(n&63)<<6|d&63)):l<=244?h>=e-2?La():(n=a[h++],(n&192)!==128||(l<<28)+(n-144)>>30!==0||((d=a[h++])&192)!==128||((f=a[h++])&192)!==128?(h--,La()):(l=(l&7)<<18|(n&63)<<12|(d&63)<<6|f&63,l-=65536,g.push((l>>10&1023)+55296,(l&1023)+56320))):La(),g.length>=8192&&(k=Ma(k,g),g.length=0);h=Ma(k,g)}d=h;L(b,I(b),c,d===""?void 0:d);return!0},function(a,b,c){b=$c(b);if(b!=null){var d=!1;d=d===void 0?!1:d;if(Sa){if(d&&(Ra?!b.Fa():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(b)))throw Error("Found an unpaired surrogate");b=(Qa||(Qa=new TextEncoder)).encode(b)}else{for(var e=0,g=new Uint8Array(3*b.length),f=0;f<b.length;f++){var h=b.charCodeAt(f);if(h<128)g[e++]=h;else{if(h<2048)g[e++]=h>>6|192;else{if(h>=55296&&h<=57343){if(h<=56319&&f<b.length){var k=b.charCodeAt(++f);if(k>=56320&&k<=57343){h=(h-55296)*1024+k-56320+65536;g[e++]=h>>18|240;g[e++]=h>>12&63|128;g[e++]=h>>6&63|128;g[e++]=h&63|128;continue}else f--}if(d)throw Error("Found an unpaired surrogate");h=65533}g[e++]=h>>12|224;g[e++]=h>>6&63|128}g[e++]=h&63|128}}b=e===g.length?g:g.subarray(0,e)}fc(a.g,c*8+2);fc(a.g,b.length);ic(a,b)}}),Bd=new pc(function(a,b,c,d,e){if(a.h!==2)return!1;Zb(a,td(b,d,c,!0),e);return!0},de,!0),Pd=new pc(function(a,b,c,d,e){if(a.h!==2)return!1;Zb(a,td(b,d,c),e);return!0},de,!0),ge=ce(function(a,b,c){if(a.h!==2)return!1;var d=Pb(a.g)>>>0;a=Rb(a.g,d);a=a===xb()?void 0:a;L(b,I(b),c,a);return!0},function(a,b,c){b=b==null||typeof b=="string"||sb(b)||b instanceof wb?b:void 0;b!=null&&(b=Cb(b).buffer,fc(a.g,c*8+2),fc(a.g,b.length),ic(a,b))}),U=ce(function(a,b,c){if(a.h!==0)return!1;a=Pb(a.g)>>>0;L(b,I(b),c,a===0?void 0:a);return!0},function(a,b,c){b=Uc(b);b!=null&&b!=null&&(fc(a.g,c*8),fc(a.g,b))}),he=ce(function(a,b,c){if(a.h!==0)return!1;a=Pb(a.g);L(b,I(b),c,a===0?void 0:a);return!0},function(a,b,c){b=Tc(b);if(b!=null)if(b=parseInt(b,10),fc(a.g,c*8),a=a.g,c=b,c>=0)fc(a,c);else{for(b=0;b<9;b++)a.g.push(c&127|128),c>>=7;a.g.push(1)}});function ie(a,b){return function(c,d){if($b.length){var e=$b.pop();Tb(e,d);Mb(e.g,c,d);c=e}else c=new Ub(c,d);try{var g=new a,f=g.j;Dd(b)(f,c);var h=g}finally{c.g.clear(),c.l=-1,c.h=-1,$b.length<100&&$b.push(c)}return h}}function je(a){return function(b){return be(b,a)}};var ke=function(a){this.j=K(a)};A(ke,T);var le=je([0,he,fe]);var me=function(a,b){var c=c===void 0?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};var ne=function(a){this.g=a};ne.prototype.toString=function(){return this.g+""};/*

 SPDX-License-Identifier: Apache-2.0
*/
function oe(a){var b=Ha.apply(1,arguments);if(b.length===0)return new ne(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return new ne(c)};var pe=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");var qe=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)},re=function(a){a=a===void 0?document:a;return a.createElement("img")};var se=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)"),te=function(a,b){this.g=a;this.h=b},ue=function(a,b){this.url=a;this.ma=!!b;this.depth=null};var ve=function(){this.i="&";this.h={};this.l=0;this.g=[]},we=function(a,b){var c={};c[a]=b;return[c]},ye=function(a,b,c,d,e){var g=[];qe(a,function(f,h){(f=xe(f,b,c,d,e))&&g.push(h+"="+f)});return g.join(b)},xe=function(a,b,c,d,e){if(a==null)return"";b=b||"&";c=c||",$";typeof c=="string"&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var g=[],f=0;f<a.length;f++)g.push(xe(a[f],b,c,d+1,e));return g.join(c[d])}}else if(typeof a=="object")return e=e||0,e<2?encodeURIComponent(ye(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))},Ae=function(a,b){var c="https://pagead2.googlesyndication.com"+b,d=ze(a)-b.length;if(d<0)return"";a.g.sort(function(n,p){return n-p});b=null;for(var e="",g=0;g<a.g.length;g++)for(var f=a.g[g],h=a.h[f],k=0;k<h.length;k++){if(!d){b=b==null?f:b;break}var l=ye(h[k],a.i,",$");if(l){l=e+l;if(d>=l.length){d-=l.length;c+=l;e=a.i;break}b=b==null?f:b}}a="";b!=null&&(a=e+"trn="+b);return c+a},ze=function(a){var b=1,c;for(c in a.h)b=c.length>b?c.length:b;return 3997-b-a.i.length-1};var Be=function(){this.h=this.g},De=function(a,b){try{var c=b()}catch(g){b=!1;try{b=a.h(987,new me(g,{message:Ce(g)}),void 0,void 0)}catch(f){a.g(217,f)}if(b){var d,e;(d=window.console)==null||(e=d.error)==null||e.call(d,g)}else throw g;}return c},Ee=function(a,b){return function(){var c=Ha.apply(0,arguments);return De(a,function(){return b.apply(void 0,c)})}};Be.prototype.g=function(a,b,c,d,e){e=e||"topics_frame_error";try{var g=new ve;g.g.push(1);g.h[1]=we("context",a);b.error&&b.meta&&b.id||(b=new me(b,{message:Ce(b)}));if(b.msg){var f=b.msg.substring(0,512);g.g.push(2);g.h[2]=we("msg",f)}var h=b.meta||{};if(d)try{d(h)}catch(pb){}b=[h];g.g.push(3);g.h[3]=b;d=Ja;b=[];f=null;do{var k=d;try{var l;if(l=!!k&&k.location.href!=null)b:{try{cb(k.foo);l=!0;break b}catch(pb){}l=!1}var n=l}catch(pb){n=!1}if(n){var p=k.location.href;f=k.document&&k.document.referrer||null}else p=f,f=null;b.push(new ue(p||""));try{d=k.parent}catch(pb){d=null}}while(d&&k!=d);p=0;for(var t=b.length-1;p<=t;++p)b[p].depth=t-p;k=Ja;if(k.location&&k.location.ancestorOrigins&&k.location.ancestorOrigins.length==b.length-1)for(t=1;t<b.length;++t){var r=b[t];r.url||(r.url=k.location.ancestorOrigins[t-1]||"",r.ma=!0)}var u=new ue(Ja.location.href,!1);k=null;var z=b.length-1;for(r=z;r>=0;--r){var x=b[r];!k&&se.test(x.url)&&(k=x);if(x.url&&!x.ma){u=x;break}}x=null;var M=b.length&&b[z].url;u.depth!=0&&M&&(x=b[z]);var ba=new te(u,x);if(ba.h){var Wb=ba.h.url||"";g.g.push(4);g.h[4]=we("top",Wb)}var Da={url:ba.g.url||""};if(ba.g.url){var Ea=ba.g.url.match(pe),Ta=Ea[1],Ua=Ea[3],Fa=Ea[4];u="";Ta&&(u+=Ta+":");Ua&&(u+="//",u+=Ua,Fa&&(u+=":"+Fa));var Xb=u}else Xb="";Da=[Da,{url:Xb}];g.g.push(5);g.h[5]=Da;Fe(e,g,c)}catch(pb){try{Fe(e,{context:"ecmserr",rctx:a,msg:Ce(pb),url:ba&&ba.g.url},c)}catch(Ui){}}return!1};var Ge=function(a,b,c){c.catch(function(d){d=d?d:"unknown rejection";a.g(b,d instanceof Error?d:Error(d),void 0,void 0)})},Ce=function(a){var b=a.toString();a.name&&b.indexOf(a.name)==-1&&(b+=": "+a.name);a.message&&b.indexOf(a.message)==-1&&(b+=": "+a.message);if(a.stack)a:{a=a.stack;var c=b;try{a.indexOf(c)==-1&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(RegExp("((https?:/..*/)[^/:]*:\\d+(?:.|\n)*)\\2"),"$1");b=a.replace(RegExp("\n *","g"),"\n");break a}catch(e){b=c;break a}b=void 0}return b};function He(a,b,c,d){d=d===void 0?!1:d;a.google_image_requests||(a.google_image_requests=[]);var e=re(a.document);if(c){var g=function(){if(c){var f=a.google_image_requests,h=Array.prototype.indexOf.call(f,e,void 0);h>=0&&Array.prototype.splice.call(f,h,1)}e.removeEventListener&&e.removeEventListener("load",g,!1);e.removeEventListener&&e.removeEventListener("error",g,!1)};e.addEventListener&&e.addEventListener("load",g,!1);e.addEventListener&&e.addEventListener("error",g,!1)}d&&(e.attributionSrc="");e.src=b;a.google_image_requests.push(e)}var Je=function(a){var b=b===void 0?!1:b;var c="https://pagead2.googlesyndication.com/pagead/gen_204?id=rcs_internal";qe(a,function(d,e){if(d||d===0)c+="&"+e+"="+encodeURIComponent(""+d)});Ie(c,b)},Ie=function(a,b){var c=window;b=b===void 0?!1:b;var d=d===void 0?!1:d;c.fetch?(b={keepalive:!0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"},d&&(b.mode="cors","setAttributionReporting"in XMLHttpRequest.prototype?b.attributionReporting={eventSourceEligible:"true",triggerEligible:"false"}:b.headers={"Attribution-Reporting-Eligible":"event-source"}),c.fetch(a,b)):He(c,a,b===void 0?!1:b,d===void 0?!1:d)};function Ke(a,b){var c=new gc;try{var d=a.filter(function(g){return g.na}).map(Le);oc(c,1,d);mc(c,2,le(b),nc);var e=a.filter(function(g){return!g.na}).map(Le);oc(c,3,e)}catch(g){Me(g,b)}return lc(c)}function Me(a,b){try{Je({m:Ce(a instanceof Error?a:Error(String(a))),b:S(b,1)||null,v:R(b,2)||null})}catch(c){}}function Le(a){var b=new gc;mc(b,a.Ka,a.Ha,nc);return lc(b)}function nc(a,b){ic(b,a.subarray(0,a.length))}var Ne=function(a,b){var c=new ke;a=O(c,1,Sc(a),0);b=O(a,2,Zc(b),"");a=b.j;c=I(a);this.g=c&2?b:cd(b.constructor,nd(a,c,!0))};var Oe=function(a){this.j=K(a)};A(Oe,T);var Pe=function(a,b){return O(a,1,b==null?b:Vc(b),"0")},Qe=function(a,b){return O(a,2,b==null?b:Vc(b),"0")},Re=je([0,ee,-1]);var Se=function(){Ne.apply(this,arguments)};A(Se,Ne);var Te=function(){Se.apply(this,arguments)};A(Te,Se);Te.prototype.l=function(){this.s.apply(this,la(Ha.apply(0,arguments).map(function(a){return{na:!0,Ka:16,Ha:Re(a)}})))};var Ue=function(a,b,c,d){Te.call(this,a,b);this.i=c;this.h=d};A(Ue,Te);Ue.prototype.s=function(){var a=Ha.apply(0,arguments);try{var b=encodeURIComponent(hb(Ke(a,this.g),3));this.h(this.i+"?e=4&d="+b)}catch(c){Me(c,this.g)}};var Ve=function(a,b){this.data=a;this.g=b};var We=function(a){this.g=a},Ye=function(a,b,c){c=c===void 0?[]:c;var d=Xe();a.g.postMessage(b,[d.port2].concat(c))},$e=function(a,b){Ze(a,b);return new We(a)},Xe=function(a){var b=new MessageChannel;Ze(b.port1,a);return b},Ze=function(a,b){b&&(a.onmessage=function(c){var d=c.data;c=$e(c.ports[0]);b(new Ve(d,c))})};var af=function(a){var b=a.destination;var c=a.origin;var d=a.Ja===void 0?void 0:a.Ja;var e=a.ka===void 0?"ZNWN1d":a.ka;a=a.onMessage===void 0?void 0:a.onMessage;if(c==="*")throw Error("Sending to wildcard origin not allowed.");var g=Xe(a),f={};d=d?(f.n=e,f.t=d,f):e;b.postMessage(d,c,[g.port2]);$e(g.port1,a)};var Fe=function(a,b,c){if(Math.random()<(c||.01))try{if(b instanceof ve)var d=b;else d=new ve,qe(b,function(g,f){var h=d,k=h.l++;g=we(f,g);h.g.push(k);h.h[k]=g});var e=Ae(d,"/pagead/gen_204?id="+a+"&");e&&He(Ja,e,!1,!1)}catch(g){}};var bf=ka(["https://securepubads.g.doubleclick.net/pagead/js/car.js"]),cf=ka(["https://securepubads.g.doubleclick.net/pagead/js/cocar.js"]),df=oe(bf);oe(cf);function ef(a){for(var b=[],c=0;c<8;++c){var d=new Ue(7,"","https://pagead2.googlesyndication.com/pagead/ping",function(g){b.push({url:g})}),e=Qe(Pe(new Oe,a),c);d.l(e)}return b}function ff(a){var b=window;var c=c===void 0?df:c;var d,e;return C(function(g){switch(g.h){case 1:d=b;if(d.sharedStorage){var f=f===void 0?Ja:f;f=f.performance;f=d.sharedStorage.set("ps_cct",String(f&&f.now&&f.timing?Math.floor(f.now()+f.timing.navigationStart):Date.now()),{ignoreIfPresent:!0});g=B(g,f,2)}else g=g.return();return g;case 2:return B(g,d.sharedStorage.worklet.addModule(c.toString()),3);case 3:return B(g,d.sharedStorage.selectURL("ps_caus",ef(a),{resolveToConfig:!0}),4);case 4:e=g.g;f=d.document.body;var h=document.createElement("fencedframe");h.id="ps_caff";h.name="ps_caff";h.mode="opaque-ads";h.config=e;f.appendChild(h);g.h=0}})};var gf=function(a){this.j=K(a)};A(gf,T);gf.prototype.o=function(){return R(this,2)};var hf=function(a){this.j=K(a)};A(hf,T);hf.pa=[1];/*

 Copyright 2020 Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
var jf=function(){};var V=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);v(Object,"setPrototypeOf").call(Object,this,V.prototype)};A(V,Error);V.prototype.name="SecurityException";var kf=function(a){this.j=K(a)};A(kf,T);var lf=[0,U];var mf=function(a){this.j=K(a)};A(mf,T);mf.prototype.o=function(){return Q(this,1)};var nf=[0,U,lf,ge];var of=function(a){this.j=K(a)};A(of,T);var pf=[0,he,U];var qf=function(a){this.j=K(a)};A(qf,T);qf.prototype.o=function(){return Q(this,1)};var rf=[0,U,pf,ge];var sf=function(a){this.j=K(a)};A(sf,T);sf.prototype.o=function(){return Q(this,1)};var tf=ie(sf,[0,U,nf,rf]);var uf=function(a){this.j=K(a)};A(uf,T);var vf=[0,lf,U];var wf=function(a){this.j=K(a)};A(wf,T);wf.prototype.o=function(){return Q(this,3)};var xf=[0,pf,U,-1];var yf=function(a){this.j=K(a)};A(yf,T);var zf=ie(yf,[0,vf,xf]);var Af=function(a){this.j=K(a)};A(Af,T);Af.prototype.o=function(){return Q(this,1)};var Bf=ie(Af,[0,U,1,ge]);var Cf=function(a){this.j=K(a)};A(Cf,T);Cf.prototype.o=function(){return Q(this,3)};var Df=ie(Cf,[0,1,U,-1]);var Ef=function(a){this.j=K(a)};A(Ef,T);Ef.prototype.getValue=function(){return N(this,2)};var Ff=[0,fe,ge,he];var Gf=function(a){this.j=K(a)};A(Gf,T);var Hf=[0,1,Ff];var If=function(a){this.j=K(a)};A(If,T);var Jf=[0,he,-1,8,ge];var Kf=function(a){this.j=K(a)};A(Kf,T);var Lf=[0,Jf,Hf,he];var Mf=function(a){this.j=K(a)};A(Mf,T);var Nf=ie(Mf,[0,Lf]);var Of=function(a){this.j=K(a)};A(Of,T);Of.prototype.o=function(){return Q(this,1)};var Pf=[0,U,Lf,ge,-1],Qf=ie(Of,Pf);var Rf=function(a){this.j=K(a)};A(Rf,T);Rf.prototype.o=function(){return Q(this,1)};var Sf=ie(Rf,[0,U,Pf,ge]);var Tf=function(a){this.j=K(a)};A(Tf,T);Tf.prototype.M=function(){return S(this,3)};var Uf=[0,he,-2];var Vf=function(a){this.j=K(a)};A(Vf,T);var Wf=[0,Uf],Xf=ie(Vf,Wf);Vf.prototype.g=function(a){return function(){return be(this,a)}}(Wf);var Yf=function(a){this.j=K(a)};A(Yf,T);Yf.prototype.o=function(){return Q(this,1)};var Zf=[0,U,Uf,ge],$f=ie(Yf,Zf);var ag=function(a){this.j=K(a)};A(ag,T);ag.prototype.o=function(){return Q(this,1)};var bg=ie(ag,[0,U,Zf,ge]);var cg=function(a){this.j=K(a)};A(cg,T);cg.prototype.getValue=function(){return N(this,2)};var dg=function(a){this.j=K(a)};A(dg,T);var eg=function(a){this.j=K(a)};A(eg,T);var fg=function(a){a=a.j;var b=I(a),c=b,d=!(2&b),e=!!(2&c);b=e?1:2;d&&(d=!e);e=pd(a,c,2);e=Array.isArray(e)?e:Fc;var g=H(e),f=!!(4&g);if(!f){var h=g;h===0&&(h=vd(h,c));h=G(h,1,!0);g=e;var k=c,l=!!(2&h);l&&(k=G(k,2,!0));for(var n=!l,p=!0,t=0,r=0;t<g.length;t++){var u=ad(g[t],dg,k);if(u instanceof dg){if(!l){var z=!!(H(u.j)&2);n&&(n=!z);p&&(p=z)}g[r++]=u}}r<t&&(g.length=r);h=G(h,4,!0);h=G(h,16,p);h=G(h,8,n);J(g,h);l&&Object.freeze(g);g=h}if(d&&!(8&g||!e.length&&(b===1||b===4&&32&g))){sd(g)&&(e=qc(e),g=vd(g,c),c=L(a,c,2,e));d=e;for(h=0;h<d.length;h++)k=d[h],l=od(k),k!==l&&(d[h]=l);g=G(g,8,!0);g=G(g,16,!d.length);J(d,g)}sd(g)||(d=g,(h=b===1||b===4&&!!(32&g))?(k=!!(32&g),g=G(g,!e.length||16&g&&(!f||k)?2:2048,!0)):g=wd(g,c,!1),g!==d&&J(e,g),h&&Object.freeze(e));b===2&&sd(g)&&(e=qc(e),g=vd(g,c),g=wd(g,c,!1),J(e,g),L(a,c,2,e));return e},gg=function(a){return function(b){if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");uc(b,32);b=cd(a,b)}return b}}(eg);eg.pa=[2];function W(a){return a==null?void 0:new Uint8Array(yb(a)||0)}function hg(a){a==null?a=void 0:a=(a=yb(a))?a.length:0;return a};var X=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);v(Object,"setPrototypeOf").call(Object,this,X.prototype)};A(X,Error);X.prototype.name="InvalidArgumentsException";function Y(){for(var a=0,b=0;b<arguments.length;b++)a+=arguments[b].length;a=new Uint8Array(a);for(var c=b=0;c<arguments.length;c++)a.set(arguments[c],b),b+=arguments[c].length;return a}function ig(a){if(v(Number,"isNaN").call(Number,a)||a%1!==0)throw new X("cannot convert non-integer value");if(a<0)throw new X("cannot convert negative number");if(a>v(Number,"MAX_SAFE_INTEGER"))throw new X("cannot convert number larger than "+v(Number,"MAX_SAFE_INTEGER"));var b=Math.pow(2,32),c=a%b;a/=b;b=new Uint8Array(8);for(var d=7;d>=4;d--)b[d]=c&255,c>>>=8;for(c=3;c>=0;c--)b[c]=a&255,a>>>=8;return b}function jg(a){for(var b="",c=0;c<a.length;c++){var d=a[c].toString(16);b+=d.length>1?d:"0"+d}return b}function kg(a){return lg(q.globalThis.atob(a.replace(/-/g,"+").replace(/_/g,"/")))}function mg(a){for(var b="",c=0;c<a.length;c+=1)b+=String.fromCharCode(a[c]);return q.globalThis.btoa(b).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function lg(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);b[c++]=e}return new Uint8Array(b)};function ng(a){switch(a){case 1:return"P-256";case 2:return"P-384";case 3:return"P-521"}}function og(a){switch(a){case "P-256":return 1;case "P-384":return 2;case "P-521":return 3}throw new X("unknown curve: "+a);}function pg(a){if(a.crv===void 0)throw new X("crv must be provided");var b=qg(og(a.crv));if(a.x===void 0)throw new X("x must be provided");if(a.y===void 0)throw new X("y must be provided");var c=kg(a.x);if(c.length!==b)throw new X("x-coordinate byte-length is invalid (got: "+c.length+", want: "+b+").");a=kg(a.y);if(a.length!==b)throw new X("y-coordinate byte-length is invalid (got: "+a.length+", want: "+b+").");}function rg(a,b,c){a=qg(og(a));switch(b){case 1:pg(c);b=c.x;c=c.y;if(b===void 0)throw new X("x must be provided");if(c===void 0)throw new X("y must be provided");var d=new Uint8Array(1+2*a);d[0]=4;d.set(kg(b),1);d.set(kg(c),1+a);return d;case 3:pg(c);b=c.x;d=c.y;if(b===void 0)throw new X("x must be provided");if(d===void 0)throw new X("y must be provided");c=kg(b);b=kg(d);c.length>a&&(c=c.slice(c.length-a,c.length));b.length>a&&(b=b.slice(b.length-a,b.length));d=new Uint8Array(2*a);d.set(c,0);d.set(b,a);return d;case 2:b=c.x;d=c.y;if(b===void 0)throw new X("x must be provided");if(d===void 0)throw new X("y must be provided");c=kg(b);b=kg(d);c.length>a&&(c=c.slice(c.length-a,c.length));b.length>a&&(b=b.slice(b.length-a,b.length));d=new Uint8Array(1+a);d.set(c,1+a-c.length);d[0]=sg(BigInt("0x"+jg(b)),0)?3:2;return d;default:throw new V("invalid format");}}function tg(a){switch(a){case 1:return BigInt("115792089210356248762697446949407573530086143415290314195533631308867097853951");case 2:return BigInt("39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319");case 3:return BigInt("6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391480858037121987999716643812574028291115057151");default:throw new X("invalid curve");}}function ug(a){a=a.toString(16);a=a.length%2===0?a:"0"+a;if(a.length%2!=0)throw new X("Hex string length must be multiple of 2");for(var b=new Uint8Array(a.length/2),c=0;c<a.length;c+=2)b[c/2]=parseInt(a.substring(c,c+2),16);return b}function sg(a,b){return(a&BigInt(1)<<BigInt(b))!==BigInt(0)}function vg(a,b,c){var d=qg(og(a));switch(b){case 1:if(c.length!==1+2*d||c[0]!==4)throw new V("invalid point");return{kty:"EC",crv:a,x:mg(new Uint8Array(c.subarray(1,1+d))),y:mg(new Uint8Array(c.subarray(1+d,c.length))),ext:!0};case 3:if(c.length!==2*d)throw new V("invalid point");return{kty:"EC",crv:a,x:mg(new Uint8Array(c.subarray(0,d))),y:mg(new Uint8Array(c.subarray(d,c.length))),ext:!0};case 2:if(c.length!==1+d)throw new V("compressed point has wrong length");if(c[0]!==2&&c[0]!==3)throw new V("invalid format");b=c[0]===3;c=BigInt("0x"+jg(c.subarray(1,c.length)));d=tg(og(a));if(c<BigInt(0)||c>=d)throw new V("x is out of range");d=tg(og(a));var e=d-BigInt(3);a:switch(og(a)){case 1:var g=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b");break a;case 2:g=BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");break a;case 3:g=BigInt("0x051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");break a;default:throw new X("invalid curve");}if(d<=BigInt(0))throw new X("p must be positive");e=((c*c+e)*c+g)%d%d;if(sg(d,0)&&sg(d,1)){var f=d+BigInt(1)>>BigInt(2);if(f===BigInt(0))g=BigInt(1);else{g=e;f=f.toString(2);for(var h=1;h<f.length;++h)g=g*g%d,f[h]==="1"&&(g=g*e%d)}if(g*g%d!==e)throw new V("could not find a modular square root");e=g}else throw new X("unsupported modulus value");b!==sg(e,0)&&(e=(d-e)%d);b=e;return{kty:"EC",crv:a,x:mg(ug(c)),y:mg(ug(b)),ext:!0};default:throw new V("invalid format");}}function qg(a){switch(a){case 1:return 32;case 2:return 48;case 3:return 66}}function wg(a,b){var c,d,e,g,f;return C(function(h){if(h.h==1){c=a.algorithm;d=c.namedCurve;if(!d)throw new X("namedCurve must be provided");e=v(Object,"assign").call(Object,{},{"public":b},a.algorithm);g=8*qg(og(d));return B(h,q.globalThis.crypto.subtle.deriveBits(e,a,g),2)}f=h.g;return h.return(new Uint8Array(f))})}function xg(a){var b,c;return C(function(d){if(d.h==1)return b={name:"ECDH",namedCurve:a},B(d,q.globalThis.crypto.subtle.generateKey(b,!0,["deriveKey","deriveBits"]),2);c=d.g;return d.return(c)})}function yg(a){var b;return C(function(c){if(c.h==1)return B(c,q.globalThis.crypto.subtle.exportKey("jwk",a),2);b=c.g;pg(b);return c.return(b)})}function zg(a){var b,c,d;return C(function(e){if(e.h==1){b=a;c=b.crv;if(!c)throw new X("crv must be provided");return B(e,q.globalThis.crypto.subtle.importKey("jwk",a,{name:"ECDH",namedCurve:c},!0,[]),2)}d=e.g;return e.return(d)})}function Ag(a){var b,c,d;return C(function(e){if(e.h==1){b=a;c=b.crv;if(!c)throw new X("crv must be provided");return B(e,q.globalThis.crypto.subtle.importKey("jwk",a,{name:"ECDH",namedCurve:c},!0,["deriveKey","deriveBits"]),2)}d=e.g;return e.return(d)})};function Bg(a,b){var c=a.length;if(c<b)return b=new Uint8Array(b-c),Y(b,a);if(c>b){for(var d=0;d<c-b;d++)if(a[d]!=0)throw new V("Number needs more bytes to be represented.");return a.slice(c-b,c)}return a}function Cg(a){switch(a){case 2:return 1;case 3:return 2;case 4:return 3;default:throw new V("Unknown curve type.");}}function Dg(a){switch(a){case 1:return"SHA-1";case 3:return"SHA-256";case 4:return"SHA-512";default:throw new V("Unknown hash type.");}}function Eg(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;default:throw new V("Unknown point format.");}};var Fg=new q.Map,Gg=new q.Map,Hg=new q.Map;function Ig(a){var b;b===void 0&&(b=!0);if(!a)throw new V("Key manager cannot be null.");var c=a.B();if(Fg.has(c)){if(!(Fg.get(c)instanceof a.constructor))throw new V("Key manager for key type "+c+" has already been registered and cannot be overwritten.");if(!Gg.get(c)&&b)throw new V("Key manager for key type "+c+" has already been registered with forbidden new key operation.");Gg.set(c,b)}Fg.set(c,a);Gg.set(c,b)}function Jg(a){var b=Fg.get(a);if(!b)throw new V("Key manager for key type "+a+" has not been registered.");return b}function Kg(a,b,c){var d,e;return C(function(g){if(g.h==1){if(b instanceof cg){if(c&&R(b,1)!=c)throw new V("Key type is "+c+", but it is expected to be "+R(b,1)+" or undefined.");c=R(b,1)}if(!c)throw new V("Key type has to be specified.");d=Jg(c);return B(g,d.D(a,b),2)}e=g.g;if(!(e instanceof a))throw new TypeError("Unexpected type");return g.return(e)})}function Lg(a){if(!a)throw new V("primitive wrapper cannot be null");var b=a.u();if(!b)throw new V("primitive wrapper cannot be undefined");if(Hg.has(b)&&!(Hg.get(b)instanceof a.constructor))throw new V("primitive wrapper for type "+b+" has already been registered and cannot be overwritten");Hg.set(b,a)};function Mg(a){if(!v(Number,"isInteger").call(Number,a)||a<0)throw new X("n must be a nonnegative integer");a=new Uint8Array(a);q.globalThis.crypto.getRandomValues(a);return a};var Ng=[16,32];function Og(a){if(!v(Ng,"includes").call(Ng,a))throw new X("unsupported AES key size: "+a);}function Z(a){if(a==null||!(a instanceof Uint8Array))throw new X("input must be a non null Uint8Array");}function Pg(a,b){if(a<0||a>b)throw new V("Version is out of bound, must be between 0 and "+b+".");};var Qg=function(a,b){this.key=a;this.K=b};Qg.prototype.encrypt=function(a){var b=this,c,d,e,g;return C(function(f){if(f.h==1)return Z(a),c=Mg(b.K),d=new Uint8Array(16),d.set(c),e={name:"AES-CTR",counter:d,length:128},B(f,q.globalThis.crypto.subtle.encrypt(e,b.key,a),2);g=f.g;return f.return(Y(c,new Uint8Array(g)))})};Qg.prototype.decrypt=function(a){var b=this,c,d,e;return C(function(g){if(g.h==1){Z(a);if(a.length<b.K)throw new V("ciphertext too short");c=new Uint8Array(16);c.set(a.subarray(0,b.K));d={name:"AES-CTR",counter:c,length:128};e=Uint8Array;return B(g,q.globalThis.crypto.subtle.decrypt(d,b.key,new Uint8Array(a.subarray(b.K))),2)}return g.return(new e(g.g))})};function Rg(a,b){var c;return C(function(d){if(d.h==1){if(!v(Number,"isInteger").call(Number,b))throw new V("invalid IV length, must be an integer");if(b<12||b>16)throw new V("invalid IV length, must be at least 12 and at most 16");Z(a);Og(a.length);return B(d,q.globalThis.crypto.subtle.importKey("raw",a,{name:"AES-CTR",length:a.length},!1,["encrypt","decrypt"]),2)}c=d.g;return d.return(new Qg(c,b))})};var Sg=function(){};var Tg=function(a,b,c){this.hash=a;this.key=b;this.L=c};A(Tg,Sg);var Ug=function(a,b){var c;return C(function(d){if(d.h==1)return Z(b),B(d,q.globalThis.crypto.subtle.sign({name:"HMAC",hash:{name:a.hash}},a.key,b),2);c=d.g;return d.return(new Uint8Array(c.slice(0,a.L)))})},Vg=function(a,b,c){var d;return C(function(e){if(e.h==1)return Z(b),Z(c),B(e,Ug(a,c),2);d=e.g;if(b.length!==d.length)var g=!1;else{for(var f=g=0;f<b.length;f++)g|=b[f]^d[f];g=g==0}return e.return(g)})};function Wg(a,b,c){var d;return C(function(e){if(e.h==1){Z(b);if(!v(Number,"isInteger").call(Number,c))throw new X("invalid tag size, must be an integer");if(c<10)throw new X("tag too short, must be at least "+(10).toString()+" bytes");switch(a){case "SHA-1":if(c>20)throw new X("tag too long, must not be larger than 20 bytes");break;case "SHA-256":if(c>32)throw new X("tag too long, must not be larger than 32 bytes");break;case "SHA-384":if(c>48)throw new X("tag too long, must not be larger than 48 bytes");break;case "SHA-512":if(c>64)throw new X("tag too long, must not be larger than 64 bytes");break;default:throw new X(a+" is not supported");}return B(e,q.globalThis.crypto.subtle.importKey("raw",b,{name:"HMAC",hash:{name:a},length:b.length*8},!1,["sign","verify"]),2)}d=e.g;return e.return(new Tg(a,d,c))})};var Xg=function(a,b,c,d){this.g=a;this.K=b;this.h=c;this.L=d};A(Xg,jf);Xg.prototype.encrypt=function(a,b){b=b===void 0?new Uint8Array(0):b;var c=this,d,e,g;return C(function(f){if(f.h==1)return Z(a),B(f,c.g.encrypt(a),2);if(f.h!=3)return d=f.g,Z(b),e=ig(b.length*8),B(f,Ug(c.h,Y(b,d,e)),3);g=f.g;if(c.L!=g.length)throw new V("invalid tag size, expected "+c.L+" but got "+g.length);return f.return(Y(d,g))})};Xg.prototype.decrypt=function(a,b){b=b===void 0?new Uint8Array(0):b;var c=this,d,e,g,f,h;return C(function(k){if(k.h==1){Z(a);if(a.length<c.K+c.L)throw new V("ciphertext too short");d=new Uint8Array(a.subarray(0,a.length-c.L));Z(b);e=ig(b.length*8);g=Y(b,d,e);f=new Uint8Array(a.subarray(d.length));return B(k,Vg(c.h,f,g),2)}h=k.g;if(!h)throw new V("invalid MAC");return k.return(c.g.decrypt(d))})};function Yg(a,b,c,d,e){var g,f;return C(function(h){if(h.h==1)return Z(a),Z(d),B(h,Rg(a,b),2);if(h.h!=3)return g=h.g,B(h,Wg(c,d,e),3);f=h.g;return h.return(new Xg(g,b,f,e))})};var Zg=function(){};Zg.prototype.T=function(a){if(a instanceof Uint8Array){try{var b=zf(a)}catch(e){throw new V("Could not parse the given Uint8Array as a serialized proto of type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey");}if(!b||!P(b,uf,1)||!P(b,wf,2))throw new V("Could not parse the given Uint8Array as a serialized proto of type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey");}else if(a instanceof yf)b=a;else throw new V("Expected AesCtrHmacAeadKeyFormat-proto");var c=$g(P(b,uf,1));a=c.za;c=c.X;var d=new mf;d=xd(d,1,0);a=ud(d,2,a);c=Mg(c);a=yd(a,3,c);c=ah(P(b,wf,2));b=c.Da;c=c.Ca;d=new qf;d=xd(d,1,0);b=ud(d,2,b);c=Mg(c);b=yd(b,3,c);c=new sf;a=ud(c,2,a);return ud(a,3,b)};var $g=function(a){if(!a)throw new V("Invalid AES CTR HMAC key format: key format undefined");var b=Q(a,2);Og(b);a=P(a,kf,1);if(!a)throw new V("Invalid AES CTR HMAC key format: params undefined");var c=Q(a,1);if(c<12||c>16)throw new V("Invalid AES CTR HMAC key format: IV size is out of range: "+c);return{za:a,X:b,K:c}},ah=function(a){if(!a)throw new V("Invalid AES CTR HMAC key format: key format undefined");var b=Q(a,2);if(b<16)throw new V("Invalid AES CTR HMAC key format: HMAC key is too small: "+Q(a,2));a=P(a,of,1);if(!a)throw new V("Invalid AES CTR HMAC key format: params undefined");var c=Q(a,2);if(c<10)throw new V("Invalid HMAC params: tag size "+c+" is too small.");if(!bh.has(S(a,1)))throw new V("Unknown hash type.");if(c>bh.get(S(a,1)))throw new V("Invalid HMAC params: tag size "+c+" is out of range.");switch(S(a,1)){case 1:var d="SHA-1";break;case 3:d="SHA-256";break;case 4:d="SHA-512";break;default:d="UNKNOWN HASH"}return{Da:a,Ca:b,Ba:d,L:c}},bh=new q.Map([[1,20],[3,32],[4,64]]),ch=function(){this.g=new Zg};m=ch.prototype;m.D=function(a,b){var c,d,e,g,f,h=this,k,l,n,p,t,r;return C(function(u){if(u.h==1){if(a!=h.u())throw new V("Requested primitive type which is not supported by this key manager.");if(b instanceof cg){if(!h.P(R(b,1)))throw new V("Key type "+R(b,1)+" is not supported. This key manager supports "+h.B()+".");try{k=tf(b.getValue())}catch(ba){throw new V("Could not parse the key in key data as a serialized proto of type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey");}if(k===null||k===void 0)throw new V("Could not parse the key in key data as a serialized proto of type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey");}else if(b instanceof sf)k=b;else throw new V("Given key type is not supported. This key manager supports "+h.B()+".");var z=P(k,mf,2);if(!z)throw new V("Invalid AES CTR HMAC key format: key undefined");Pg(z.o(),h.o());var x=new uf;var M=P(z,kf,2);x=ud(x,1,M);M=hg(N(z,3));x=xd(x,2,M);x=$g(x).K;g=W(N(z,3));f=x;l=g;n=f;z=P(k,qf,3);if(!z)throw new V("Invalid AES CTR HMAC key format: key undefined");Pg(z.o(),h.o());x=new wf;M=P(z,of,2);x=ud(x,1,M);M=hg(N(z,3));x=xd(x,2,M);M=ah(x);x=M.Ba;M=M.L;c=W(N(z,3));d=x;e=M;p=c;t=d;r=e;return B(u,Yg(l,n,t,p,r),2)}return u.return(u.g)})};m.P=function(a){return a===this.B()};m.B=function(){return"type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey"};m.u=function(){return jf};m.o=function(){return 0};m.R=function(){return this.g};var dh=function(a){var b=a.key;a=a.G;this.key=b;this.G=a};dh.prototype.encrypt=function(a,b,c){var d=this,e,g;return C(function(f){if(f.h==1){if(a.length!==12)throw new V("IV must be 12 bytes");e={name:"AES-GCM",iv:a,tagLength:128};c&&(e.additionalData=c);return B(f,q.globalThis.crypto.subtle.encrypt(e,d.key,b),2)}g=f.g;return f.return(d.G?Y(a,new Uint8Array(g)):new Uint8Array(g))})};dh.prototype.decrypt=function(a,b,c){var d=this,e,g,f,h,k;return C(function(l){if(l.h==1){e=d.G?28:16;if(b.length<e)throw new V("ciphertext too short");if(a.length!==12)throw new V("IV must be 12 bytes");g={name:"AES-GCM",iv:a,tagLength:128};c&&(g.additionalData=c);f=d.G?new Uint8Array(b.subarray(12)):b;l.s=2;h=Uint8Array;return B(l,q.globalThis.crypto.subtle.decrypt(g,d.key,f),4)}if(l.h!=2)return l.return(new h(l.g));k=xa(l);throw new V(k.toString());})};function eh(a){var b=a.key;var c=a.G;var d;return C(function(e){if(e.h==1){if(!(aa=[16,32],v(aa,"includes")).call(aa,b.length))throw new X("unsupported AES key size: ${n}");return B(e,q.globalThis.crypto.subtle.importKey("raw",b,{name:"AES-GCM",length:b.length},!1,["encrypt","decrypt"]),2)}d=e.g;return e.return(new dh({key:d,G:c}))})};var fh=function(a){this.key=a;this.g=new dh({key:a,G:!0})};A(fh,jf);fh.prototype.encrypt=function(a,b){var c=this,d;return C(function(e){d=Mg(12);return e.return(c.g.encrypt(d,a,b))})};fh.prototype.decrypt=function(a,b){var c=this,d;return C(function(e){d=new Uint8Array(12);d.set(a.subarray(0,12));return e.return(c.g.decrypt(d,a,b))})};function gh(a){var b;return C(function(c){if(c.h==1)return Og(a.length),B(c,q.globalThis.crypto.subtle.importKey("raw",a,{name:"AES-GCM",length:a.length},!1,["encrypt","decrypt"]),2);b=c.g;return c.return(new fh(b))})};var hh=function(){};hh.prototype.T=function(a){if(a instanceof Uint8Array){try{var b=Df(a)}catch(c){throw new V("Could not parse the input as a serialized proto of type.googleapis.com/google.crypto.tink.AesGcmKey key format.");}if(!Q(b,2))throw new V("Could not parse the input as a serialized proto of type.googleapis.com/google.crypto.tink.AesGcmKey key format.");a=b}else if(!(a instanceof Cf))throw new V("Expected AesGcmKeyFormat-proto");b=a;Og(Q(b,2));a=new Af;b=Mg(Q(b,2));a=yd(a,3,b);return xd(a,1,0)};var ih=function(){this.g=new hh};m=ih.prototype;m.D=function(a,b){var c=this,d;return C(function(e){if(e.h==1){if(a!=c.u())throw new V("Requested primitive type which is not supported by this key manager.");if(b instanceof cg){if(R(b,1)!="type.googleapis.com/google.crypto.tink.AesGcmKey")throw new V("Key type "+R(b,1)+" is not supported. This key manager supports type.googleapis.com/google.crypto.tink.AesGcmKey.");try{var g=Bf(b.getValue())}catch(f){throw new V("Could not parse the input as a serialized proto of type.googleapis.com/google.crypto.tink.AesGcmKey key.");}}else if(b instanceof Af)g=b;else throw new V("Key type is not supported. This key manager supports type.googleapis.com/google.crypto.tink.AesGcmKey.");d=g;Og(hg(N(d,3)));Pg(d.o(),0);return B(e,gh(W(N(d,3))),2)}return e.return(e.g)})};m.P=function(a){return a===this.B()};m.B=function(){return"type.googleapis.com/google.crypto.tink.AesGcmKey"};m.u=function(){return jf};m.o=function(){return 0};m.R=function(){return this.g};var jh=function(){};var kh=function(a,b){b=[b];var c=b.concat;if(!v(Number,"isInteger").call(Number,a)||a<0||a>=Math.pow(2,32))throw new X("Number has to be unsigned 32-bit integer.");for(var d=Array(4),e=0;e<4;e++)d[e]=255&a>>8*(4-e-1);b=c.call(b,d);return new Uint8Array(b)},lh=new Uint8Array(0);var mh=function(a){this.g=a};A(mh,jh);mh.prototype.decrypt=function(a,b){var c=this,d,e,g,f,h;return C(function(k){switch(k.h){case 1:if(!a)throw new V("Ciphertext has to be non-null.");if(!(a.length>5)){k.h=2;break}d=a.subarray(0,5);return B(k,nh(c.g,d),3);case 3:return e=k.g,g=a.subarray(5,a.length),k.s=4,B(k,oh(e,g,b),6);case 6:f=k.g;k.h=5;k.s=0;break;case 4:xa(k);case 5:if(f)return k.return(f);case 2:return B(k,nh(c.g,lh),7);case 7:return h=k.g,k.return(oh(h,a,b))}})};var oh=function(a,b,c){var d,e,g,f;return C(function(h){switch(h.h){case 1:d=a.length,e=0;case 2:if(!(e<d)){h.h=4;break}if(a[e].h!=1){h.h=3;break}g=a[e].D();f=void 0;h.s=5;return B(h,g.decrypt(b,c),7);case 7:f=h.g;h.h=6;h.s=0;break;case 5:xa(h);h.h=3;break;case 6:return h.return(f);case 3:e++;h.h=2;break;case 4:throw new V("Decryption failed for the given ciphertext.");}})},ph=function(){};ph.prototype.qa=function(a){if(!a)throw new V("Primitive set has to be non-null.");return new mh(a)};ph.prototype.u=function(){return jh};function qh(a){var b=null;var c=a instanceof Rf?P(a,Of,2):a;var d=P(c,Kf,2);if(!d)throw new V("Params not set");d=P(d,If,1);if(!d)throw new V("KEM params not set");d=Cg(S(d,1));var e=qg(d),g=Bg(W(N(c,3)),e);c=Bg(W(N(c,4)),e);a instanceof Rf&&(b=Bg(W(N(a,3)),e));a=b;b={kty:"EC",crv:ng(d),x:mg(g),y:mg(c),ext:!0};a&&(b.d=mg(a));return b};function rh(a){var b=P(a,If,1);if(!b)throw new V("Invalid params - missing KEM params.");var c=S(b,1);if(c!==2&&c!==3&&c!==4)throw new V("Invalid KEM params - unknown curve type.");b=S(b,2);if(b!==1&&b!==3&&b!==2&&b!==4)throw new V("Invalid KEM params - unknown hash type.");b=P(a,Gf,2);if(!b)throw new V("Invalid params - missing DEM params.");if(!P(b,Ef,2))throw new V("Invalid DEM params - missing AEAD key template.");b=R(P(b,Ef,2),1);if(b!="type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey"&&b!="type.googleapis.com/google.crypto.tink.AesGcmKey")throw new V("Invalid DEM params - "+b+" template is not supported by ECIES AEAD HKDF.");a=S(a,3);if(a!==1&&a!==2&&a!==3)throw new V("Invalid key params - unknown EC point format.");}function sh(a,b){Pg(a.o(),b);b=P(a,Kf,2);if(!b)throw new V("Invalid public key - missing key params.");rh(b);if(!hg(N(a,3))||!hg(N(a,4)))throw new V("Invalid public key - missing value of X or Y.");};var th=function(){};var uh=function(a){var b=R(a,1);switch(b){case "type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey":try{var c=zf(a.getValue())}catch(g){throw new V("Could not parse the given Uint8Array as a serialized proto of type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey.");}if(!P(c,uf,1)||!P(c,wf,2))throw new V("Could not parse the given Uint8Array as a serialized proto of type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey.");a=c;var d=P(a,uf,1);if(!d)throw new V("AES-CTR key format not set");d=Q(d,2);c=P(a,wf,2);if(!c)throw new V("HMAC key format not set");c=Q(c,2);c=d+c;break;case "type.googleapis.com/google.crypto.tink.AesGcmKey":try{var e=Df(a.getValue())}catch(g){throw new V("Could not parse the given Uint8Array as a serialized proto of type.googleapis.com/google.crypto.tink.AesGcmKey.");}if(!Q(e,2))throw new V("Could not parse the given Uint8Array as a serialized proto of type.googleapis.com/google.crypto.tink.AesGcmKey.");a=e;c=Q(a,2);break;default:throw new V("Key type URL "+b+" is not supported.");}this.key=Jg(b).R().T(a);this.g=b;this.V=c;this.X=d};uh.prototype.M=function(a){var b=this,c;return C(function(d){if(a.length!==b.V)throw new V("Key is not of the correct length, expected length: "+b.V+", but got key of length: "+a.length+".");if(b.g==="type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey"){var e=b.key,g=P(e,mf,2);if(!g)throw new V("AES-CTR key not set");yd(g,3,a.slice(0,b.X));g=P(e,qf,3);if(!g)throw new V("HMAC key not set");yd(g,3,a.slice(b.X,b.V));c=e}else{if(!(b.key instanceof Af))throw new V("Key is not an AES-CTR key");c=yd(b.key,3,a)}return d.return(Kg(jf,c,b.g))})};function vh(a,b,c,d,e){var g,f,h,k,l,n,p,t,r;return C(function(u){switch(u.h){case 1:if(!v(Number,"isInteger").call(Number,a))throw new X("size must be an integer");if(a<=0)throw new X("size must be positive");switch(b){case "SHA-1":g=20;if(a>5100)throw new X("size too large");break;case "SHA-256":g=32;if(a>8160)throw new X("size too large");break;case "SHA-512":g=64;if(a>16320)throw new X("size too large");break;default:throw new X(b+" is not supported");}Z(c);Z(d);f=e;if(e==null||f===void 0||f.length==0)f=new Uint8Array(g);Z(f);return B(u,Wg(b,f,g),2);case 2:return h=u.g,B(u,Ug(h,c),3);case 3:return k=u.g,B(u,Wg(b,k,g),4);case 4:h=u.g,l=1,n=0,p=new Uint8Array(0),t=new Uint8Array(a);case 5:return r=new Uint8Array(p.length+d.length+1),r.set(p,0),r.set(d,p.length),r[r.length-1]=l,B(u,Ug(h,r),8);case 8:p=u.g;if(n+p.length<a)t.set(p,n),n+=p.length,l++;else{t.set(p.subarray(0,a-n),n);u.h=7;break}u.h=5;break;case 7:return u.return(t)}})};var wh=function(a){if(!a)throw new V("Recipient public key has to be non-null.");if(a.type!=="public"||!a.algorithm)throw new V("Expected Crypto key of type: public.");this.publicKey=a};wh.prototype.ha=function(a,b,c,d,e){var g=this,f,h,k,l,n,p,t,r,u,z;return C(function(x){switch(x.h){case 1:f=g.publicKey.algorithm;h=f.namedCurve;if(!h)throw new V("Curve has to be defined.");return B(x,xg(h),2);case 2:return k=x.g,B(x,wg(k.privateKey,g.publicKey),3);case 3:return l=x.g,B(x,yg(k.publicKey),4);case 4:p=n=x.g;t=p.crv;if(!t)throw new V("Curve has to be defined.");r=rg(t,b,n);u=Y(r,l);return B(x,vh(a,c,u,d,e),5);case 5:return z=x.g,x.return({key:z,token:r})}})};function xh(a){var b;return C(function(c){if(c.h==1)return B(c,zg(a),2);b=c.g;return c.return(new wh(b))})};var yh=function(a,b,c,d,e){if(!a)throw new V("KEM sender has to be non-null.");if(!b)throw new V("HMAC algorithm has to be non-null.");if(!c)throw new V("Point format has to be non-null.");if(!d)throw new V("DEM helper has to be non-null.");this.s=a;this.h=b;this.l=c;this.g=d;this.i=e};A(yh,th);yh.prototype.encrypt=function(a,b){b=b===void 0?new Uint8Array(0):b;var c=this,d,e,g,f,h;return C(function(k){switch(k.h){case 1:return d=c.g.V,B(k,c.s.ha(d,c.l,c.h,b,c.i),2);case 2:return e=k.g,B(k,c.g.M(e.key),3);case 3:return g=k.g,B(k,g.encrypt(a),4);case 4:return f=k.g,h=e.token,k.return(Y(h,f))}})};function zh(a,b,c,d,e){var g;return C(function(f){if(f.h==1){if(!a)throw new V("Recipient public key has to be non-null.");if(!b)throw new V("HMAC algorithm has to be non-null.");if(!c)throw new V("Point format has to be non-null.");if(!d)throw new V("DEM helper has to be non-null.");return B(f,xh(a),2)}g=f.g;return f.return(new yh(g,b,c,d,e))})};var Ah=function(){};Ah.prototype.T=function(){throw new V("This operation is not supported for public keys. Use EciesAeadHkdfPrivateKeyManager to generate new keys.");};var Bh=function(){this.g=new Ah};m=Bh.prototype;m.D=function(a,b){var c=this,d,e,g,f,h,k,l,n,p,t;return C(function(r){if(a!==c.u())throw new V("Requested primitive type which is not supported by this key manager.");if(b instanceof cg){if(R(b,1)!=="type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey")throw new V("Key type "+R(b,1)+" is not supported. This key manager supports type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey.");try{var u=Qf(b.getValue())}catch(z){throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey key-proto.");}if(!P(u,Kf,2)||!N(u,3)||!N(u,4))throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey key-proto.");}else if(b instanceof Of)u=b;else throw new V("Key type is not supported. This key manager supports type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey.");d=u;sh(d,c.o());e=qh(d);g=P(d,Kf,2);f=P(g,Gf,2);if(!f)throw new V("DEM params not set");h=P(f,Ef,2);k=new uh(h);l=Eg(S(g,3));n=P(g,If,1);if(!n)throw new V("KEM params not set");p=Dg(S(n,2));t=W(N(n,11));return r.return(zh(e,p,l,k,t))})};m.P=function(a){return a===this.B()};m.B=function(){return"type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey"};m.u=function(){return th};m.o=function(){return 0};m.R=function(){return this.g};var Ch=function(a){if(!a)throw new V("Private key has to be non-null.");if(a.type!=="private"||!a.algorithm)throw new V("Expected crypto key of type: private.");this.g=a};Ch.prototype.fa=function(a,b,c,d,e,g){var f=this,h,k,l,n,p,t,r;return C(function(u){switch(u.h){case 1:h=f.g.algorithm;k=h.namedCurve;if(!k)throw new V("Curve has to be defined.");l=vg(k,c,a);return B(u,zg(l),2);case 2:return n=u.g,B(u,wg(f.g,n),3);case 3:return p=u.g,t=Y(a,p),B(u,vh(b,d,t,e,g),4);case 4:return r=u.g,u.return(r)}})};function Dh(a){var b;return C(function(c){if(c.h==1)return B(c,Ag(a),2);b=c.g;return c.return(new Ch(b))})};var Eh=function(a,b,c,d,e,g){if(!a)throw new V("Recipient private key has to be non-null.");if(!b)throw new V("KEM recipient has to be non-null.");if(!c)throw new V("HKDF hash algorithm has to be non-null.");if(!d)throw new V("Point format has to be non-null.");if(!e)throw new V("DEM helper has to be non-null.");a=a.crv;if(!a)throw new V("Curve has to be defined.");a=og(a);a:{switch(d){case 1:a=2*qg(a)+1;break a;case 2:a=qg(a)+1;break a;case 3:a=2*qg(a);break a}a=void 0}this.F=b;this.i=c;this.s=d;this.h=e;this.g=a;this.l=g};A(Eh,jh);Eh.prototype.decrypt=function(a,b){var c=this,d,e,g;return C(function(f){if(f.h==1){if(a.length<c.g)throw new V("Ciphertext is too short.");d=a.slice(0,c.g);e=a.slice(c.g,a.length);return B(f,c.M(d,b),2)}g=f.g;return f.return(g.decrypt(e))})};Eh.prototype.M=function(a,b){var c=this,d;return C(function(e){if(e.h==1)return b||(b=new Uint8Array(0)),B(e,c.F.fa(a,c.h.V,c.s,c.i,b,c.l),2);d=e.g;return e.return(c.h.M(d))})};function Fh(a,b,c,d,e){var g;return C(function(f){if(f.h==1){if(!a)throw new V("Recipient private key has to be non-null.");if(!b)throw new V("HKDF hash algorithm has to be non-null.");if(!c)throw new V("Point format has to be non-null.");if(!d)throw new V("DEM helper has to be non-null.");if(!a)throw new V("Recipient private key has to be non-null.");return B(f,Dh(a),2)}g=f.g;return f.return(new Eh(a,g,b,c,d,e))})};var Gh=function(){};Gh.prototype.T=function(a){var b,c,d,e,g,f,h,k,l;return C(function(n){switch(n.h){case 1:if(!a)throw new V("Key format has to be non-null.");if(a instanceof Uint8Array){try{var p=Nf(a)}catch(z){throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey key format proto.");}if(!P(p,Kf,1))throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey key format proto.");}else if(a instanceof Mf)p=a;else throw new V("Expected type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey key format proto.");b=p;p=P(b,Kf,1);if(!p)throw new V("Invalid key format - missing key params.");rh(p);c=P(b,Kf,1);if(!c)throw new V("Params not set");d=P(c,If,1);if(!d)throw new V("KEM params not set");e=S(d,1);g=Cg(e);f=ng(g);return B(n,xg(f),2);case 2:return h=n.g,B(n,yg(h.publicKey),3);case 3:return k=n.g,B(n,yg(h.privateKey),4);case 4:l=n.g;p=n.return;var t=k.x;var r=k.y;if(t===void 0)throw new V("x must be set");if(r===void 0)throw new V("y must be set");var u=new Of;u=xd(u,1,0);u=ud(u,2,c);t=kg(t);t=yd(u,3,t);r=kg(r);t=yd(t,4,r);r=l.d;if(r===void 0)throw new V("d must be set");u=new Rf;u=xd(u,1,0);t=ud(u,2,t);r=kg(r);r=yd(t,3,r);return p.call(n,r)}})};var Hh=function(){this.g=new Gh};m=Hh.prototype;m.D=function(a,b){var c=this,d,e,g,f,h,k,l,n,p,t,r;return C(function(u){if(a!==c.u())throw new V("Requested primitive type which is not supported by this key manager.");if(b instanceof cg){if(R(b,1)!=="type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey")throw new V("Key type "+R(b,1)+" is not supported. This key manager supports type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey.");var z=b.getValue();try{var x=Sf(z)}catch(M){throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey key-proto.");}if(!P(x,Of,2)||!N(x,3))throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey key-proto.");z=x}else if(b instanceof Rf)z=b;else throw new V("Key type is not supported. This key manager supports type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey.");d=z;Pg(d.o(),0);if(!N(d,3))throw new V("Invalid private key - missing private key value.");z=P(d,Of,2);if(!z)throw new V("Invalid private key - missing public key information.");sh(z,0);e=qh(d);g=P(d,Of,2);if(!g)throw new V("Public key not set");f=P(g,Kf,2);if(!f)throw new V("Params not set");h=P(f,Gf,2);if(!h)throw new V("DEM params not set");k=P(h,Ef,2);if(!k)throw new V("Key template not set");l=new uh(k);n=Eg(S(f,3));p=P(f,If,1);if(!p)throw new V("KEM params not set");t=Dg(S(p,2));r=W(N(p,11));return u.return(Fh(e,t,n,l,r))})};m.P=function(a){return a===this.B()};m.B=function(){return"type.googleapis.com/google.crypto.tink.EciesAeadHkdfPrivateKey"};m.u=function(){return jh};m.o=function(){return 0};m.R=function(){return this.g};var Ih=function(a){this.g=a};A(Ih,th);Ih.prototype.encrypt=function(a,b){var c=this,d,e,g,f;return C(function(h){if(h.h==1){if(!a)throw new V("Plaintext has to be non-null.");d=c.g.h;if(!d)throw new V("Primary not set.");e=d.D();return B(h,e.encrypt(a,b),2)}g=h.g;f=d.g;return h.return(Y(f,g))})};var Jh=function(){};Jh.prototype.qa=function(a){if(!a)throw new V("Primitive set has to be non-null.");if(!a.h)throw new V("Primary has to be non-null.");return new Ih(a)};Jh.prototype.u=function(){return th};var Lh=Kh(1,0),Mh=Kh(2,16),Nh=Kh(2,18),Oh=Kh(2,1),Ph=Kh(2,3),Qh=Kh(2,1),Rh=Kh(2,2),Sh=lg("KEM"),Th=lg("HPKE"),Uh=lg("HPKE-v1");function Kh(a,b){for(var c=new Uint8Array(a),d=0;d<a;d++)c[d]=b>>8*(a-d-1)&255;return c}function Vh(a){var b=a.J;var c=a.I;return Y(Uh,a.C,lg(b),c)}function Wh(a){var b=a.N;var c=a.info;var d=a.C;return Y(Kh(2,a.length),Uh,d,lg(b),c)}function Xh(a){switch(a){case 2:return 1;case 4:return 3;default:throw new X("Unrecognized NIST HPKE KEM identifier");}}function Yh(a,b){var c;return C(function(d){return d.h==1?(c=vg(a,1,b),B(d,zg(c),2)):d.return(d.g)})}function Zh(a){var b=a.ea;var c=a.publicKey;var d=a.privateKey;var e;return C(function(g){return g.h==1?(e=vg(b,1,c),e.d=mg(d),B(g,Ag(e),2)):g.return(g.g)})}function $h(a){var b,c;return C(function(d){if(d.h==1)return b=a.algorithm,B(d,yg(a),2);c=d.g;if(!c.crv)throw new V("Curve has to be defined.");return d.return(rg(b.namedCurve,1,c))})};var ai=function(a,b,c,d){this.ia=a;this.key=b;this.i=c;this.h=d;this.g=BigInt(0);this.l=(BigInt(1)<<BigInt(96))-BigInt(1)};ai.prototype.seal=function(a,b){var c=this,d;return C(function(e){return e.h==1?(d=bi(c),B(e,c.h.seal({key:c.key,nonce:d,Ga:a,da:b}),2)):e.return(e.g)})};ai.prototype.open=function(a,b){var c=this,d;return C(function(e){d=bi(c);return e.return(c.h.open({key:c.key,nonce:d,Aa:a,da:b}))})};var bi=function(a){for(var b=a.g,c=new Uint8Array(12),d=0;d<12;d++)c[d]=Number(b>>BigInt(8*(12-d-1)))&255;b=a.i;if(b.length!==c.length)throw new X("Both byte arrays should be of the same length");d=new Uint8Array(b.length);for(var e=0;e<d.length;e++)d[e]=b[e]^c[e];if(a.g>=a.l)throw new V("message limit reached");a.g+=BigInt(1);return d};function ci(a,b,c,d,e,g){var f,h,k,l,n,p,t;return C(function(r){switch(r.h){case 1:a:{switch(e.ba){case 16:var u=Qh;break a;case 32:u=Rh;break a}u=void 0}a:{switch(d.aa){case "SHA-256":var z=Oh;break a;case "SHA-512":z=Ph;break a}z=void 0}f=Y(Th,di(c),z,u);return B(r,ei(d,{I:new Uint8Array(0),J:"psk_id_hash",C:f}),2);case 2:return h=r.g,B(r,ei(d,{I:g,J:"info_hash",C:f}),3);case 3:return k=r.g,l=Y(Lh,h,k),B(r,ei(d,{I:new Uint8Array(0),J:"secret",C:f,salt:b}),4);case 4:return n=r.g,B(r,fi(d,{oa:n,info:l,N:"key",C:f,length:e.ba}),5);case 5:return p=r.g,B(r,fi(d,{oa:n,info:l,N:"base_nonce",C:f,length:12}),6);case 6:return t=r.g,r.return(new ai(a,p,t,e))}})}function gi(a,b,c,d,e){var g,f,h;return C(function(k){return k.h==1?B(k,b.ha(a),2):k.h!=3?(g=k.g,f=g.ia,h=g.Ia,B(k,ci(f,h,b,c,d,e),3)):k.return(k.g)})}function hi(a,b,c,d,e,g){var f;return C(function(h){return h.h==1?B(h,c.fa(a,b),2):h.h!=3?(f=h.g,B(h,ci(a,f,c,d,e,g),3)):h.return(h.g)})};var ii=function(a,b){this.privateKey=a;this.publicKey=b},ji=function(a){return C(function(b){return b.h==1?B(b,$h(a.publicKey),2):b.return(b.g)})};function ki(a){var b=a.privateKey;var c=a.publicKey;var d=a.ea;var e,g;return C(function(f){if(f.h==1){if(!b)throw new X("KEM private key was null or undefined");if(!c)throw new X("KEM public key was null or undefined");return B(f,Yh(ng(d),c),2)}if(f.h!=3)return e=f.g,B(f,Zh({ea:ng(d),publicKey:c,privateKey:b}),3);g=f.g;return f.return(new ii(g,e))})}function li(a){return C(function(b){mi(a.privateKey,"private");mi(a.publicKey,"public");return b.return(new ii(a.privateKey,a.publicKey))})}function mi(a,b){if(b!==a.type)throw new X("keyPair "+b+" key was of type "+a.type);a=a.algorithm;if("ECDH"!==a.name)throw new X("keyPair "+b+" key should be ECDH but found "+a.name);};var ni=function(a){this.ba=a};ni.prototype.seal=function(a){var b=a.key;var c=a.nonce;var d=a.Ga;var e=a.da;var g=this,f;return C(function(h){if(h.h==1){if(b.length!==g.ba)throw new V("Unexpected key length: "+b.length.toString());return B(h,eh({key:b,G:!1}),2)}return h.h!=3?(f=h.g,B(h,f.encrypt(c,d,e),3)):h.return(h.g)})};ni.prototype.open=function(a){var b=a.key;var c=a.nonce;var d=a.Aa;var e=a.da;var g=this,f;return C(function(h){if(h.h==1){if(b.length!==g.ba)throw new V("Unexpected key length: "+b.length.toString());return B(h,eh({key:b,G:!1}),2)}f=h.g;return h.return(f.decrypt(c,d,e))})};var oi=function(a){this.aa=a},ei=function(a,b){var c=b.I;var d=b.J;var e=b.C;var g=b.salt;return C(function(f){return f.h==1?B(f,pi(a,Vh({J:d,I:c,C:e}),g),2):f.return(f.g)})},fi=function(a,b){var c=b.oa;var d=b.info;var e=b.N;var g=b.C;var f=b.length;return C(function(h){return h.h==1?B(h,qi(a,c,Wh({N:e,info:d,C:g,length:f}),f),2):h.return(h.g)})},ri=function(a,b){var c=b.I;var d=b.J;var e=b.info;var g=b.N;var f=b.C;var h=b.length;var k=b.salt;var l;return C(function(n){return n.h==1?B(n,pi(a,Vh({J:d,I:c,C:f}),k),2):n.h!=3?(l=n.g,B(n,qi(a,l,Wh({N:g,info:e,C:f,length:h}),h),3)):n.return(n.g)})},qi=function(a,b,c,d){var e,g,f,h,k,l,n;return C(function(p){switch(p.h){case 1:if(!v(Number,"isInteger").call(Number,d))throw new V("length must be an integer");if(d<=0)throw new V("length must be positive");e=si(a);if(d>255*e)throw new V("length too large");Z(c);return B(p,Wg(a.aa,b,e),2);case 2:g=p.g,f=1,h=0,k=new Uint8Array(0),l=new Uint8Array(d);case 3:return n=new Uint8Array(k.length+c.length+1),n.set(k,0),n.set(c,k.length),n[n.length-1]=f,B(p,Ug(g,n),6);case 6:k=p.g;if(h+k.length<d)l.set(k,h),h+=k.length,f++;else{l.set(k.subarray(0,d-h),h);p.h=5;break}p.h=3;break;case 5:return p.return(l)}})},pi=function(a,b,c){var d,e,g,f;return C(function(h){if(h.h==1)return Z(b),d=si(a),((e=c)==null?0:e.length)||(c=new Uint8Array(d)),Z(c),B(h,Wg(a.aa,c,d),2);if(h.h!=3)return g=h.g,B(h,Ug(g,b),3);f=h.g;return h.return(f)})},si=function(a){switch(a.aa){case "SHA-256":return 32;case "SHA-512":return 64}};var ti=function(a,b){this.i=a;this.g=b},ui=function(a){switch(a){case 1:return new ti(new oi("SHA-256"),1);case 3:return new ti(new oi("SHA-512"),3)}};ti.prototype.h=function(a,b,c){var d=this,e,g;return C(function(f){return f.h==1?(e=Y(b,c),g=Y(Sh,di(d)),B(f,ri(d.i,{I:a,J:"eae_prk",info:e,N:"shared_secret",C:g,length:si(d.i)}),2)):f.return(f.g)})};ti.prototype.l=function(a,b){var c=this,d,e,g,f,h;return C(function(k){switch(k.h){case 1:return B(k,Yh(ng(c.g),a),2);case 2:return d=k.g,B(k,wg(b.privateKey,d),3);case 3:return e=k.g,B(k,ji(b),4);case 4:return g=k.g,B(k,c.h(e,g,a),5);case 5:return f=k.g,h={Ia:f,ia:g},k.return(h)}})};ti.prototype.ha=function(a){var b=this,c,d,e,g;return C(function(f){switch(f.h){case 1:return B(f,xg(ng(b.g)),2);case 2:return c=f.g,d=b,e=d.l,g=a,B(f,li(c),4);case 4:return B(f,e.call(d,g,f.g),3);case 3:return f.return(f.g)}})};ti.prototype.fa=function(a,b){var c=this,d,e,g,f,h,k;return C(function(l){switch(l.h){case 1:return d=b.privateKey,B(l,Yh(ng(c.g),a),2);case 2:return e=l.g,B(l,wg(d,e),3);case 3:return g=l.g,f=c,h=f.h,k=a,B(l,ji(b),4);case 4:return l.return(h.call(f,g,k,l.g))}})};var di=function(a){switch(a.g){case 1:return Mh;case 3:return Nh}};/*

 Copyright 2023 Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
var vi=function(a){switch(S(a,1)){case 2:return ui(1);case 4:return ui(3);default:throw new X("Unrecognized HPKE KEM identifier");}},wi=function(a){switch(S(a,2)){case 1:return new oi("SHA-256");case 3:return new oi("SHA-512");default:throw new X("Unrecognized HPKE KDF identifier");}},xi=function(a){switch(a.M()){case 1:return new ni(16);case 2:return new ni(32);default:throw new X("Unrecognized HPKE AEAD identifier");}};var yi=function(a,b,c,d,e){if(!a)throw new X("Recipient private key must be non-null.");if(!b)throw new X("KEM algorithm must be non-null.");if(!c)throw new X("KDF algorithm must be non-null.");if(!d)throw new X("AEAD algorithm must be non-null.");this.s=a;this.l=b;this.i=c;this.h=d;this.g=e};A(yi,jh);var zi=function(a){var b,c,d,e,g,f,h;return C(function(k){if(k.h==1){if(W(N(a,3)).length===0)throw new X("Recipient private key is empty.");b=P(a,Yf,2);if(!b)throw new X("Recipient private key is missing public key field.");c=P(b,Tf,2);if(!c)throw new X("Public key is missing params field.");d=vi(c);e=wi(c);g=xi(c);a:switch(S(c,1)){case 2:var l=65;break a;case 4:l=133;break a;default:throw new X("Unable to determine KEM-encoding length");}f=l;a:{l=P(a,Yf,2);if(!l)throw new X("Public key not set");var n=P(l,Tf,2);if(!n)throw new X("Params not set");switch(S(n,1)){case 2:case 4:l=ki({privateKey:W(N(a,3)),publicKey:W(N(l,3)),ea:Xh(S(n,1))});break a;default:throw new X("Unrecognized HPKE KEM identifier");}}return B(k,l,2)}h=k.g;return k.return(new yi(h,d,e,g,f))})};yi.prototype.decrypt=function(a,b){var c=this,d,e,g;return C(function(f){if(f.h==1){if(a.length<=c.g)throw new V("Ciphertext is too short.");b||(b=new Uint8Array(0));d=a.slice(0,c.g);e=a.slice(c.g,a.length);return B(f,hi(d,c.s,c.l,c.i,c.h,b),2)}g=f.g;return f.return(g.open(e,Ai))})};var Ai=new Uint8Array(0);var Bi=function(a,b,c,d){if(!a)throw new X("Recipient public key must be non-null.");if(!b)throw new X("KEM algorithm must be non-null.");if(!c)throw new X("KDF algorithm must be non-null.");if(!d)throw new X("AEAD algorithm must be non-null.");this.l=a;this.i=b;this.h=c;this.g=d};A(Bi,th);var Ci=function(a){var b,c,d,e;return C(function(g){if(W(N(a,3)).length===0)throw new X("Recipient public key is empty.");b=P(a,Tf,2);if(!b)throw new X("Public key is missing params field.");c=vi(b);d=wi(b);e=xi(b);return g.return(new Bi(a,c,d,e))})};Bi.prototype.encrypt=function(a,b){var c=this,d,e,g;return C(function(f){if(f.h==1)return b||(b=new Uint8Array(0)),d=W(N(c.l,3)),B(f,gi(d,c.i,c.h,c.g,b),2);if(f.h!=3)return e=f.g,B(f,e.seal(a,Di),3);g=f.g;return f.return(Y(e.ia,g))})};var Di=new Uint8Array(0);function Ei(a){var b=S(a,1);if(b!==2&&b!==4)throw new V("Invalid hpke params - unknown KEM identifier.");b=S(a,2);if(b!==1&&b!==3)throw new V("Invalid hpke params - unknown KDF identifier.");a=a.M();if(a!==1&&a!==2)throw new V("Invalid hpke params - unknown AEAD identifier.");}function Fi(a,b){Pg(a.o(),b);b=P(a,Tf,2);if(!b)throw new V("Invalid public key - missing key params.");Ei(b);if(hg(N(a,3))===0)throw new V("Invalid public key - missing public key value.");};var Gi=function(){};Gi.prototype.T=function(){throw new V("This operation is not supported for public keys. Use HpkePrivateKeyManager to generate new keys.");};var Hi=function(){this.g=new Gi};m=Hi.prototype;m.D=function(a,b){var c=this,d;return C(function(e){if(a!==c.u())throw new V("Requested primitive type which is not supported by this key manager.");if(b instanceof cg){if(R(b,1)!=="type.googleapis.com/google.crypto.tink.HpkePublicKey")throw new V("Key type "+R(b,1)+" is not supported. This key manager supports type.googleapis.com/google.crypto.tink.HpkePublicKey.");try{var g=$f(b.getValue())}catch(f){throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.HpkePublicKey key-proto.");}if(!P(g,Tf,2)||!N(g,3))throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.HpkePublicKey key-proto.");}else if(b instanceof Yf)g=b;else throw new V("Key type is not supported. This key manager supports type.googleapis.com/google.crypto.tink.HpkePublicKey.");d=g;Fi(d,c.o());return e.return(Ci(d))})};m.P=function(a){return a===this.B()};m.B=function(){return"type.googleapis.com/google.crypto.tink.HpkePublicKey"};m.u=function(){return th};m.o=function(){return 0};m.R=function(){return this.g};var Ii=function(){};Ii.prototype.T=function(a){var b,c,d,e,g,f,h,k,l,n;return C(function(p){switch(p.h){case 1:if(!a)throw new V("Key format must be non-null.");if(a instanceof Uint8Array){try{var t=Xf(a)}catch(z){throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.HpkePrivateKey key format proto.");}if(!P(t,Tf,1))throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.HpkePrivateKey key format proto.");}else if(a instanceof Vf)t=a;else throw new V("Expected type.googleapis.com/google.crypto.tink.HpkePrivateKey key format proto.");b=t;t=P(b,Tf,1);if(!t)throw new V("Invalid key format - missing key params.");Ei(t);c=P(b,Tf,1);if(!c)throw new V("Params not set");d=Xh(S(c,1));e=ng(d);return B(p,xg(e),2);case 2:return g=p.g,B(p,yg(g.privateKey),3);case 3:return f=p.g,B(p,$h(g.publicKey),4);case 4:h=p.g;t=new Yf;t=xd(t,1,0);t=ud(t,2,c);k=yd(t,3,h);l=f;n=l.d;if(n===void 0)throw new V("d must be set");t=p.return;var r=new ag;r=xd(r,1,0);r=ud(r,2,k);var u=kg(n);r=yd(r,3,u);return t.call(p,r)}})};var Ji=function(){this.g=new Ii};m=Ji.prototype;m.D=function(a,b){var c=this,d;return C(function(e){if(a!==c.u())throw new V("Requested primitive type which is not supported by this key manager.");if(b instanceof cg){if(R(b,1)!=="type.googleapis.com/google.crypto.tink.HpkePrivateKey")throw new V("Key type "+R(b,1)+" is not supported. This key manager supports type.googleapis.com/google.crypto.tink.HpkePrivateKey.");var g=b.getValue();try{var f=bg(g)}catch(h){throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.HpkePrivateKey key-proto.");}if(!P(f,Yf,2)||!N(f,3))throw new V("Input cannot be parsed as type.googleapis.com/google.crypto.tink.HpkePrivateKey key-proto.");g=f}else if(b instanceof ag)g=b;else throw new V("Key type is not supported. This key manager supports type.googleapis.com/google.crypto.tink.HpkePrivateKey.");d=g;Pg(d.o(),0);if(hg(N(d,3))===0)throw new V("Invalid private key - missing private key value.");g=P(d,Yf,2);if(!g)throw new V("Invalid private key - missing public key field.");Fi(g,0);return e.return(zi(d))})};m.P=function(a){return a===this.B()};m.B=function(){return"type.googleapis.com/google.crypto.tink.HpkePrivateKey"};m.u=function(){return jh};m.o=function(){return 0};m.R=function(){return this.g};function Ki(a,b,c,d){var e=new Vf,g=new Tf;a=O(g,1,Sc(a),0);b=O(a,2,Sc(b),0);c=O(b,3,Sc(c),0);e=ud(e,1,c);c=new Ef;c=O(c,1,Zc("type.googleapis.com/google.crypto.tink.HpkePrivateKey"),"");e=e.g();e=yd(c,2,e);O(e,3,Sc(d),0)};Ki(2,1,1,3);Ki(2,1,1,1);Ki(2,1,2,3);Ki(2,1,2,1);Ki(4,3,2,3);Ki(4,3,2,1);var Li=function(a,b,c){this.i=a;this.g=b;this.h=c};Li.prototype.D=function(){return this.i};var Mi=function(a){this.i=a;this.h=null;this.g=new q.Map};Mi.prototype.u=function(){return this.i};var nh=function(a,b){return(a=Ni(a,b))?a:[]},Ni=function(a,b){b instanceof Uint8Array&&(b=[].concat(la(b)).toString());return a.g.get(b)};var Oi=function(a){if(!a||!fg(a)||fg(a).length<1)throw new V("Keyset should be non null and must contain at least one key.");for(var b=!1,c=fg(a).length,d=0;d<c;d++){var e=fg(a)[d];if(!e)throw new V("Key should be non null.");if(!P(e,cg,1))throw new V("Key data are missing for key "+Q(e,3)+".");if(S(e,4)===0)throw new V("Key "+Q(e,3)+" has unknown output prefix type.");if(S(e,2)===0)throw new V("Key "+Q(e,3)+" has unknown status.");if(Q(a,1)===Q(e,3)&&S(e,2)===1){if(b)throw new V("Primary key has to be unique.");b=!0}}if(!b)throw new V("Primary key has to be in the keyset and has to be enabled.");this.g=a};Oi.prototype.D=function(a,b){var c=this,d;return C(function(e){if(e.h==1){if(!a)throw new X("primitive type must be non-null");return B(e,Pi(c,a,b),2)}d=e.g;var g=e.return;if(!d)throw new V("primitive set cannot be null.");var f=d.u(),h=Hg.get(f);if(!h)throw new V("no primitive wrapper found for type "+f);h=h.qa(d);if(!(h instanceof f))throw new TypeError("Unexpected type");return g.call(e,h)})};var Pi=function(a,b,c){var d,e,g,f,h,k,l,n;return C(function(p){switch(p.h){case 1:d=new Mi(b),e=fg(a.g),g=e.length,f=0;case 2:if(!(f<g)){p.h=4;break}h=e[f];if(S(h,2)!==1){p.h=3;break}k=P(h,cg,1);if(!k)throw new V("Key data has to be non null.");l=void 0;return c&&c.B()===R(k,1)?B(p,c.D(b,k),9):B(p,Kg(b,k),8);case 8:l=p.g;p.h=7;break;case 9:l=p.g;case 7:var t=d,r=l;if(!r)throw new V("Primitive has to be non null.");if(!h)throw new V("Key has to be non null.");a:switch(S(h,4)){case 2:case 4:var u=kh(Q(h,3),0);break a;case 1:u=kh(Q(h,3),1);break a;case 3:u=lh;break a;default:throw new V("Unsupported key prefix type.");}r=new Li(r,u,S(h,2),S(h,4));u=[].concat(la(r.g)).toString();var z=Ni(t,u);z?(z.push(r),t.g.set(u,z)):t.g.set(u,[r]);n=r;if(Q(h,3)===Q(a.g,1)){if(!n)throw new V("Primary cannot be set to null.");if(n.h!=1)throw new V("Primary has to be enabled.");t=nh(d,n.g);r=!1;u=t.length;for(z=0;z<u;z++)if(t[z].h===1){r=!0;break}if(!r)throw new V("Primary cannot be set to an entry which is not held by this primitive set.");d.h=n}case 3:f++;p.h=2;break;case 4:return p.return(d)}})};Oi.prototype.write=function(){return C(function(){throw new V("KeysetHandle -- write: Not implemented yet.");})};function Qi(a){if(a===null)throw new V("Reader has to be non-null.");a=a.read();for(var b=y(fg(a)),c=b.next();!c.done;c=b.next()){c=P(c.value,cg,1);if(c==null)throw new V("Key data has to be non null.");c=S(c,3);if(c===0||c===1||c===2)throw new V("Keyset contains secret key material.");}return new Oi(a)};function Ri(a){return Qi({read:function(){return gg(a)},La:function(){throw new V("Not implemented yet.");}})};function Si(a){var b=new gf;var c=a.topic;if(c!=null){if(typeof c!=="number")throw Pc("int32");if(!v(Number,"isFinite").call(Number,c))throw Pc("int32");c|=0}b=O(b,1,c,0);b=O(b,2,Zc(a.version),"");b=O(b,3,Zc(a.configVersion),"");b=O(b,4,Zc(a.modelVersion),"");return O(b,5,Zc(a.taxonomyVersion),"")}function Ti(a,b,c){c=c===void 0?document:c;var d,e,g,f,h;return C(function(k){if(k.h==1){d=c;if(typeof d.browsingTopics!=="function")return Ye(a.g,2),k.return();e=a.data;g=!!e.skipTopicsObservation;return B(k,d.browsingTopics({skipObservation:g}),2)}if(k.h!=3){f=k.g;if(!f.length)return Ye(a.g,3),k.return();var l=b.encrypt,n=new TextEncoder,p=n.encode,t=new hf;var r=f.map(Si),u=t.j,z=I(u);Hc(z);if(r==null)L(u,z,1);else{var x=H(r),M=x,ba=!!(2&x)||!!(2048&x),Wb=ba||Object.isFrozen(r),Da;if(Da=!Wb)Da=void 0===Mc||!1;for(var Ea=!0,Ta=!0,Ua=0;Ua<r.length;Ua++){var Fa=r[Ua];ba||(Fa=!!(H(Fa.j)&2),Ea&&(Ea=!Fa),Ta&&(Ta=Fa))}ba||(x=G(x,5,!0),x=G(x,8,Ea),x=G(x,16,Ta));if(Da||Wb&&x!==M)r=qc(r),M=0,x=vd(x,z),x=wd(x,z,!0);x!==M&&J(r,x);L(u,z,1,r)}Cc=!0;try{var Xb=JSON.stringify(t.toJSON(),gd)}finally{Cc=!1}return B(k,l.call(b,p.call(n,Xb)),3)}h=k.g;Ye(a.g,h,[h.buffer]);k.h=0})};(function(a){var b=new Be;Ge(b,977,function(){var c,d,e;return C(function(g){if(g.h==1){c=window.document.referrer;if(!c)return b.g(988,Error()),g.return();Ig(new ch);Ig(new ih);Lg(new ph);Ig(new Hh);Ig(new Bh);Lg(new Jh);Ig(new Ji);Ig(new Hi);return B(g,Ri(a).D(th),2)}d=g.g;e=Ee(b,function(f){var h=h===void 0?document:h;var k=f.data;if(k==="goog:topics:frame:handshake:ack")Ye(f.g,"goog:topics:frame:handshake:ack");else switch(k.message){case "goog:spam:client_age":Ge(b,1062,ff(k.pvsid));Ye(f.g,"goog:spam:client_age:ack");break;case "goog:topics:frame:get:topics":Ge(b,1002,Ti(f,d,h))}});af({destination:window.parent,origin:c,ka:"goog:gRpYw:doubleclick",onMessage:e});g.h=0})}())})('[351284738,[[["type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey","EkQKBAgCEAMSOhI4CjB0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5jcnlwdG8udGluay5BZXNHY21LZXkSAhAQGAEYARog5z+eqzXpk2SD9nfrNTaxxgy+IUFKl+FdJ63gJJGsZMoiIE5SAUd01WBkOowgnddBWBB/yDCFCoqOXYIQ5G9azhRe",3],1,351284738,1],[["type.googleapis.com/google.crypto.tink.EciesAeadHkdfPublicKey","EkQKBAgCEAMSOhI4CjB0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5jcnlwdG8udGluay5BZXNHY21LZXkSAhAQGAEYARogJVp08rg6Vy/61mR3gbBGw8w3+JLaZnZPs9RrcQ0CDfQiILH3g6blf7mw4V7a9NdkNe0d1PVTGNtNUX7jZmXPnXZs",3],1,2623294582,1]]]');
    </script>
  </head>
  <body>

<fencedframe id="ps_caff"></fencedframe></body></html>